Context passed to a tool handler when invoked.
| 43 | |
| 44 | @dataclass |
| 45 | class ToolInvocation: |
| 46 | """Context passed to a tool handler when invoked.""" |
| 47 | |
| 48 | session_id: str = "" |
| 49 | tool_call_id: str = "" |
| 50 | tool_name: str = "" |
| 51 | arguments: Any = None |
| 52 | |
| 53 | |
| 54 | ToolHandler = Callable[[ToolInvocation], ToolResult | Awaitable[ToolResult]] |
no outgoing calls
searching dependent graphs…