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) io.reactivex.rxjava3.core.Single<SearchMemoryResponse> searchMemory(String query) Searches the memory of the current user.voidsetActions(EventActions actions) Methods inherited from class com.google.adk.agents.CallbackContext
eventActions, listArtifacts, loadArtifact, saveArtifact, stateMethods inherited from class com.google.adk.agents.ReadonlyContext
agentName, branch, events, invocationId, sessionId, userContent
-
Method Details
-
actions
-
setActions
-
functionCallId
-
functionCallId
-
searchMemory
Searches the memory of the current user. -
builder
-
toBuilder
-