| 16 | |
| 17 | @dataclass(slots=True) |
| 18 | class ToolSpec: |
| 19 | name: str |
| 20 | description: str |
| 21 | handler: ToolHandler |
| 22 | |
| 23 | def to_dict(self) -> dict[str, str]: |
| 24 | return { |
| 25 | "name": self.name, |
| 26 | "description": self.description, |
| 27 | } |
| 28 | |
| 29 | |
| 30 | def build_terminal_tool( |
no outgoing calls
no test coverage detected