Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/context/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ You'll frequently need to read information stored within the context.
from google.adk.tools import ToolContext

def log_tool_usage(tool_context: ToolContext, **kwargs):
agent_name = tool_context.agent_nameSystem.out.println("Found temporary result from last tool: " + lastToolResult);
agent_name = tool_context.agent_name
inv_id = tool_context.invocation_id
func_call_id = getattr(tool_context, 'function_call_id', 'N/A') # Specific to ToolContext

Expand Down
Loading