| 39 | |
| 40 | |
| 41 | class ToolInput(BaseModel): |
| 42 | type: ToolType = Field( |
| 43 | ..., |
| 44 | description="The tool type, which can be `function` or `action`.", |
| 45 | examples=["action", "plugin"], |
| 46 | ) |
| 47 | |
| 48 | tool_id: str = Field( |
| 49 | ..., |
| 50 | description="The tool ID.", |
| 51 | examples=["action_1"], |
| 52 | ) |
| 53 | |
| 54 | tool_call_id: str = Field( |
| 55 | ..., |
| 56 | description="The tool call ID.", |
| 57 | examples=["call_1"], |
| 58 | ) |
| 59 | |
| 60 | arguments: Dict = Field( |
| 61 | ..., |
| 62 | description="The tool input arguments.", |
| 63 | ) |
| 64 | |
| 65 | |
| 66 | class ToolOutput(BaseModel): |