CoolFace
Apppublic

Backup-bdg/OpenHands

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
tool.py12 linesDownload Raw Back to events
1from litellm import ModelResponse2from pydantic import BaseModel3 4 5class ToolCallMetadata(BaseModel):6    # See https://docs.litellm.ai/docs/completion/function_call#step-3---second-litellmcompletion-call7    function_name: str  # Name of the function that was called8    tool_call_id: str  # ID of the tool call9 10    model_response: ModelResponse11    total_calls_in_response: int12