PrismAgentRunner class
Runs an AI agent loop that persists messages across calls.
Constructors
- PrismAgentRunner({required AiStreamClient client, int maxSteps = 10})
Properties
- client → AiStreamClient
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSteps → int
-
final
-
messages
→ List<
AiChatMessage> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMessage(
AiChatMessage message) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
run(
{required String model, double? temperature}) → Future< String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited