Skip to content

Enhance ToolCall message to support all argument types #1823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ragas/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class ToolCall(BaseModel):
----------
name : str
The name of the tool being called.
args : Dict[str, Union[str, int, float]]
args : Dict[str, Any]
A dictionary of arguments for the tool call, where keys are argument names
and values can be strings, integers, or floats.
"""

name: str
args: t.Dict[str, t.Union[str, int, float]]
args: t.Dict[str, t.Any]


class HumanMessage(Message):
Expand Down
Loading