Skip to content
Open
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
5 changes: 2 additions & 3 deletions agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,11 +978,10 @@ async def validate_tool_request(self, tool_request: Any):
raise ValueError("Tool request must be a dictionary")
if not tool_request.get("tool_name") or not isinstance(tool_request.get("tool_name"), str):
raise ValueError("Tool request must have a tool_name (type string) field")
if "tool_args" not in tool_request or not isinstance(tool_request.get("tool_args"), dict):
tool_args_value = tool_request.get("tool_args", tool_request.get("args"))
if tool_args_value is not None and not isinstance(tool_args_value, dict):
raise ValueError("Tool request must have a tool_args (type dictionary) field")



async def handle_reasoning_stream(self, stream: str):
await self.handle_intervention()
await extension.call_extensions_async(
Expand Down