Convert tool to Anthropic tool schema.
(self)
| 36 | raise NotImplementedError |
| 37 | |
| 38 | def to_schema(self) -> dict[str, Any]: |
| 39 | """Convert tool to Anthropic tool schema.""" |
| 40 | return { |
| 41 | "name": self.name, |
| 42 | "description": self.description, |
| 43 | "input_schema": self.parameters, |
| 44 | } |
| 45 | |
| 46 | def to_openai_schema(self) -> dict[str, Any]: |
| 47 | """Convert tool to OpenAI tool schema.""" |
no outgoing calls