Metadata tracked per in-flight tool call during execution.
| 285 | |
| 286 | |
| 287 | class ToolCallMetadata(BaseModel): |
| 288 | """Metadata tracked per in-flight tool call during execution.""" |
| 289 | |
| 290 | llm_tool_name: str = Field(description="Tool name as the LLM sees it") |
| 291 | execution_tool_name: str = Field(description="Actual tool name for execution") |
| 292 | display_name: str = Field(description="Display name for UI") |
| 293 | arguments: dict[str, Any] = Field( |
| 294 | default_factory=dict, description="Resolved arguments" |
| 295 | ) |
| 296 | raw_arguments: str = Field(default="", description="Raw arguments string from LLM") |
| 297 | |
| 298 | model_config = {"frozen": True} |
| 299 | |
| 300 | |
| 301 | # ────────────────────────────────────────────────────────────────────────────── |
no outgoing calls