Convert tool to OpenAI tool schema.
(self)
| 44 | } |
| 45 | |
| 46 | def to_openai_schema(self) -> dict[str, Any]: |
| 47 | """Convert tool to OpenAI tool schema.""" |
| 48 | return { |
| 49 | "type": "function", |
| 50 | "function": { |
| 51 | "name": self.name, |
| 52 | "description": self.description, |
| 53 | "parameters": self.parameters, |
| 54 | }, |
| 55 | } |
no outgoing calls