EvalToolDeclaration class
JSON-serializable ToolDeclaration with value equality for evaluation metadata.
- Inheritance
-
- Object
- ToolDeclaration
- EvalToolDeclaration
Constructors
-
EvalToolDeclaration({List<
FunctionDeclaration> ? functionDeclarations, Object? googleSearch, Object? googleSearchRetrieval, Object? urlContext, Object? codeExecution, Object? googleMaps, Object? enterpriseWebSearch, Object? retrieval, Object? computerUse}) - Creates a serializable tool declaration.
- EvalToolDeclaration.fromToolDeclaration(ToolDeclaration tool)
-
Creates an EvalToolDeclaration from an existing ToolDeclaration.
factory
Properties
- codeExecution ↔ Object?
-
Backend-specific code execution tool config.
getter/setter pairinherited
- computerUse ↔ Object?
-
Backend-specific computer use tool config.
getter/setter pairinherited
- enterpriseWebSearch ↔ Object?
-
Backend-specific enterprise web search tool config.
getter/setter pairinherited
-
functionDeclarations
↔ List<
FunctionDeclaration> -
Function-calling declarations exposed under this tool entry.
getter/setter pairinherited
- googleMaps ↔ Object?
-
Backend-specific Google Maps tool config.
getter/setter pairinherited
- googleSearch ↔ Object?
-
Backend-specific Google Search tool config.
getter/setter pairinherited
- googleSearchRetrieval ↔ Object?
-
Backend-specific Google Search Retrieval tool config.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- retrieval ↔ Object?
-
Backend-specific retrieval tool config.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- urlContext ↔ Object?
-
Backend-specific URL Context tool config.
getter/setter pairinherited
Methods
-
copyWith(
{List< FunctionDeclaration> ? functionDeclarations, Object? googleSearch = _sentinel, Object? googleSearchRetrieval = _sentinel, Object? urlContext = _sentinel, Object? codeExecution = _sentinel, Object? googleMaps = _sentinel, Object? enterpriseWebSearch = _sentinel, Object? retrieval = _sentinel, Object? computerUse = _sentinel}) → ToolDeclaration -
Returns a copy of this tool declaration with optional overrides.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Serializes this tool declaration to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override