ProductLookupTool<T extends ZorphyEntityBase<Object?> > class
final
The three domain-hub tools over ZfaStore (issue #2256).
The agent answers a product question, a reviews question or an
alternatives question by calling one of these. Each one validates its
arguments through the intent's fromWire boundary and then reads the
store through backend<T>() with a typed ZfaQuery built from the
entity's registered ZorphyEntityDescriptor — never an ad-hoc repository
and never a private map, so the model's answer and the UI's rows are the
same documents.
Constructors
- ProductLookupTool({required ZfaStore store, required ZfaTypeRegistry registry})
-
Creates a product-lookup tool over
storeandregistry.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- registry → ZfaTypeRegistry
-
The registry that resolves
T's descriptor and wire codec.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → ZfaStore
-
The store the tool reads from.
final
Methods
-
lookup(
{required Map< String, Object?> args}) → AgentToolResult -
Resolves the product stored under the
idargument. -
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