Skip to content

Commit 310a3b9

Browse files
committed
RDBC-934 Load action request arguments to dict
1 parent 77613ef commit 310a3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ravendb/documents/operations/ai/agents/run_conversation_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AiAgentActionRequest:
2222

2323
@classmethod
2424
def from_json(cls, json_dict: Dict[str, Any]) -> AiAgentActionRequest:
25-
return cls(name=json_dict.get("Name"), tool_id=json_dict.get("ToolId"), arguments=json_dict.get("Arguments"))
25+
return cls(name=json_dict.get("Name"), tool_id=json_dict.get("ToolId"), arguments=json.loads(json_dict.get("Arguments")))
2626

2727
def to_json(self) -> Dict[str, Any]:
2828
return {

0 commit comments

Comments
 (0)