Using a JSON to send the result.

This commit is contained in:
filipi87
2026-04-01 10:28:03 -03:00
parent f7012c570c
commit 970d713d7a

View File

@@ -1081,7 +1081,7 @@ class LLMAssistantAggregator(LLMContextAggregator):
self._context.add_message(
{
"role": "developer",
"content": f"Async function with id '{frame.tool_call_id}' completed with result: {result}",
"content": json.dumps({"tool_call_id": frame.tool_call_id, "result": result}),
}
)
else: