1 parent 25987cb commit 933f14bCopy full SHA for 933f14b
1 file changed
docs/context/index.md
@@ -449,7 +449,7 @@ You'll frequently need to read information stored within the context.
449
from google.adk.tools import ToolContext
450
451
def log_tool_usage(tool_context: ToolContext, **kwargs):
452
- agent_name = tool_context.agent_nameSystem.out.println("Found temporary result from last tool: " + lastToolResult);
+ agent_name = tool_context.agent_name
453
inv_id = tool_context.invocation_id
454
func_call_id = getattr(tool_context, 'function_call_id', 'N/A') # Specific to ToolContext
455
0 commit comments