mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tobitege <10787084+tobitege@users.noreply.github.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com> Co-authored-by: tofarr <tofarr@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 lines
381 B
Python
12 lines
381 B
Python
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
|