Spaces:
Configuration error
Configuration error
Download openhands/events/tool.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/events/tool.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/events/tool.py
-
curl -L -o tool.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/events/tool.py
381 Bytes
| from litellm import ModelResponse | |
| from pydantic import BaseModel | |
| class ToolCallMetadata(BaseModel): | |
| # See https://docs.litellm.ai/docs/completion/function_call#step-3---second-litellmcompletion-call | |
| function_name: str # Name of the function that was called | |
| tool_call_id: str # ID of the tool call | |
| model_response: ModelResponse | |
| total_calls_in_response: int | |