Class ToolContext.Builder
java.lang.Object
com.google.adk.tools.ToolContext.Builder
- Enclosing class:
ToolContext
Builder for
ToolContext.-
Method Summary
Modifier and TypeMethodDescriptionactions(EventActions actions) build()functionCallId(String functionCallId) stateSchema(@Nullable com.google.genai.types.Schema stateSchema) Sets the state schema that the tool'sContext.state()checks writes against, as a workflow tool node does: writes store converted values and throwStateSchemaExceptionon a mismatch or undeclared key.toolConfirmation(ToolConfirmation toolConfirmation)
-
Method Details
-
actions
-
functionCallId
-
toolConfirmation
@CanIgnoreReturnValue public ToolContext.Builder toolConfirmation(ToolConfirmation toolConfirmation) -
eventId
-
stateSchema
@Experimental @CanIgnoreReturnValue public ToolContext.Builder stateSchema(@Nullable com.google.genai.types.Schema stateSchema) Sets the state schema that the tool'sContext.state()checks writes against, as a workflow tool node does: writes store converted values and throwStateSchemaExceptionon a mismatch or undeclared key. -
build
-