Extra data for a tool response
| 6 | from src.dynamic import dynamic_manager |
| 7 | |
| 8 | class ToolExtra(BaseModel): |
| 9 | """Extra data for a tool response""" |
| 10 | model_config = ConfigDict(arbitrary_types_allowed=True, extra="allow") |
| 11 | |
| 12 | file_path: Optional[Union[str, List[str]]] = Field(default=None, description="The file path of the extra data") |
| 13 | data: Optional[Dict[str, Any]] = Field(default=None, description="The data of the extra data") |
| 14 | parsed_model: Optional[BaseModel] = Field(default=None, description="The parsed model of the extra data") |
| 15 | |
| 16 | class ToolResponse(BaseModel): |
| 17 | """Response for a tool call.""" |
no outgoing calls
no test coverage detected