Fix unnecessary single quotes escaping in Google AI (#118522)

This commit is contained in:
tronikos 2024-05-30 16:56:06 -07:00 committed by GitHub
parent 0d6c7d0973
commit 272c51fb38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 17 deletions

View file

@ -140,7 +140,7 @@ class APIInstance:
"""Call a LLM tool, validate args and return the response."""
async_conversation_trace_append(
ConversationTraceEventType.LLM_TOOL_CALL,
{"tool_name": tool_input.tool_name, "tool_args": str(tool_input.tool_args)},
{"tool_name": tool_input.tool_name, "tool_args": tool_input.tool_args},
)
for tool in self.tools: