MenuAgent class
Reads and drives the menu for an LLM agent.
Lines go through the presenter when it is a MenuLineProcessor (the console, the web and flutter presenters), so that its display follows.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
describe(
) → List< Map< String, Object?> > -
The commands, as
{name, description, inputSchema}(a json schema). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
String name, [Map< String, Object?> ? args]) → Future<Map< String, Object?> > -
Runs the command
namewithargs:{ok: true, result}or{ok: false, error}. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited