SpannerToolset class
A BaseToolset that exposes Spanner metadata, query, and search tools.
- Inheritance
-
- Object
- BaseToolset
- SpannerToolset
Constructors
- SpannerToolset({Object? toolFilter, SpannerCredentialsConfig? credentialsConfig, SpannerToolSettings? spannerToolSettings})
- Creates a Spanner toolset with optional credentials and feature settings.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolFilter ↔ Object?
-
Tool filter expressed as a ToolPredicate or a list of tool names.
getter/setter pairinherited
- toolNamePrefix ↔ String?
-
Optional prefix added by getToolsWithPrefix.
getter/setter pairinherited
- useInvocationCache → bool
-
Whether tools are listed once per invocation and reused for the rest of it.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes the toolset and releases any retained resources.
override
-
getAuthConfig(
) → AuthConfig? -
Returns auth config for this toolset, if tool listing/calls require auth.
inherited
-
getTools(
{ReadonlyContext? readonlyContext}) → Future< List< BaseTool> > -
Returns enabled Spanner tools filtered by
readonlyContext.override -
getToolsWithPrefix(
{ReadonlyContext? readonlyContext}) → Future< List< BaseTool> > -
Returns getTools with an optional toolNamePrefix applied.
inherited
-
isToolSelected(
BaseTool tool, ReadonlyContext? readonlyContext) → bool -
Returns whether
toolshould be visible inreadonlyContext.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processLlmRequest(
{required ToolContext toolContext, required LlmRequest llmRequest}) → Future< void> -
Mutates outgoing
llmRequestbefore model execution.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited