AlternativesLookupTool<T extends ZorphyEntityBase<Object?>> class final

The alternatives tool: store products under a price bound (issue #2256).

Constructors

AlternativesLookupTool({required ZfaStore store, required ZfaTypeRegistry registry})
Creates an alternatives tool over store and registry.

Properties

hashCode → int
The hash code for this object.
no setterinherited
registry → ZfaTypeRegistry
The registry that resolves T's descriptor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → ZfaStore
The store the tool reads from.
final

Methods

alternatives({required Map<String, Object?> args}) → AgentToolResult
Resolves the alternatives whose price stays under maxPrice.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited