Skip to content

Commit 22d7738

Browse files
Update src/google/adk/tools/agent_tool.py
improve import of json Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5ff1554 commit 22d7738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/tools/agent_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async def run_async(
138138
role='user',
139139
parts=[
140140
types.Part.from_text(
141-
text=str(args) if isinstance(args, str) else __import__('json').dumps(args))
141+
text=str(args) if isinstance(args, str) else json.dumps(args))
142142
],
143143
)
144144
invocation_context = tool_context._invocation_context

0 commit comments

Comments
 (0)