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
eventActions
Fields inherited from class com.google.adk.agents.ReadonlyContext
invocationContext
-
Method Summary
Modifier and TypeMethodDescriptionactions()
static ToolContext.Builder
builder
(InvocationContext invocationContext) void
functionCallId
(String functionCallId) Lists the filenames of the artifacts attached to the current session.void
setActions
(EventActions actions) Methods inherited from class com.google.adk.agents.CallbackContext
eventActions, loadArtifact, saveArtifact, state, userContent
Methods inherited from class com.google.adk.agents.ReadonlyContext
agentName, invocationId
-
Method Details
-
actions
-
setActions
-
functionCallId
-
functionCallId
-
listArtifacts
-
builder
-
toBuilder
-