Class ToolContext
java.lang.Object
com.google.adk.agents.ReadonlyContext
com.google.adk.agents.CallbackContext
com.google.adk.tools.ToolContext
ToolContext object provides a structured context for executing tools or functions.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.adk.agents.CallbackContext
eventActionsFields inherited from class com.google.adk.agents.ReadonlyContext
invocationContext -
Method Summary
Modifier and TypeMethodDescriptionactions()static ToolContext.Builderbuilder(InvocationContext invocationContext) voidfunctionCallId(String functionCallId) Lists the filenames of the artifacts attached to the current session.voidsetActions(EventActions actions) Methods inherited from class com.google.adk.agents.CallbackContext
eventActions, loadArtifact, saveArtifact, stateMethods inherited from class com.google.adk.agents.ReadonlyContext
agentName, branch, events, invocationId, sessionId, userContent
-
Method Details
-
actions
-
setActions
-
functionCallId
-
functionCallId
-
listArtifacts
-
builder
-
toBuilder
-