A single callable tool available to an agent.
| 16 | |
| 17 | @dataclass |
| 18 | class ToolDefinition: |
| 19 | """A single callable tool available to an agent.""" |
| 20 | |
| 21 | name: str |
| 22 | description: str |
| 23 | parameters: dict[str, Any] # JSON Schema |
| 24 | handler: Callable[..., Awaitable[Any]] |
| 25 | |
| 26 | |
| 27 | class ToolRegistry: |
no outgoing calls
no test coverage detected