Constructor
| Parameter | Type | Description |
|---|---|---|
limits | ExecutionLimits | Budget/step/time limits |
loop_detection | LoopDetectionConfig | Loop detection config |
tool_access | ToolAccessController | Tool access rules |
checkpoint_enabled | bool | Enable checkpointing |
on_before_call | Callable | Hook before each call |
on_after_call | Callable | Hook after each call |
Methods
configure_provider
call
call_with_tools
get_metrics
get_call_history
reset
Properties
metrics
CallRecord
Record of a single LLM call.Properties
| Property | Type | Description | |
|---|---|---|---|
agent_id | str | Agent that made the call | |
provider | LLMProvider | Provider used | |
model | str | Model used | |
request | LLMRequest | The request | |
response | LLMResponse | The response | |
error | `str | None` | Error message if failed |
timestamp | datetime | When the call was made | |
success | bool | Whether call succeeded | |
cost | float | Cost of the call | |
latency_ms | float | Latency in milliseconds |