Package com.google.adk.tools
Class ToolContext
java.lang.Object
com.google.adk.agents.ReadonlyContext
com.google.adk.agents.Context
com.google.adk.agents.CallbackContext
com.google.adk.tools.ToolContext
ToolContext object provides a structured context for executing tools or functions.
Extends CallbackContext (and through it Context); BaseTool.runAsync(java.util.Map<java.lang.String, java.lang.Object>, com.google.adk.tools.ToolContext)
and tool callbacks take this type.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.adk.agents.Context
eventActionsFields inherited from class com.google.adk.agents.ReadonlyContext
invocationContext -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolContext.Builderbuilder(InvocationContext invocationContext) voidsetActions(EventActions actions) toString()Methods inherited from class com.google.adk.agents.Context
actions, attemptCount, eventActions, eventAuthor, eventAuthor, eventId, functionCallId, functionCallId, listArtifacts, loadArtifact, loadArtifact, output, requestConfirmation, requestConfirmation, requestConfirmation, requireNodeState, resumeInputs, routes, routes, runNode, runNode, runNode, saveArtifact, searchMemory, state, toolConfirmation, toolConfirmationMethods inherited from class com.google.adk.agents.ReadonlyContext
agentName, branch, events, invocationContext, invocationId, sessionId, userContent, userId