Context class final
Everything a provider needs to produce the next assistant message.
Ported from pi's Context.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
→ List<
Message> -
The conversation so far, oldest first.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemPrompt → String?
-
Optional system prompt, sent first by providers that support one.
final
-
tools
→ List<
Tool> ? -
Tools available to the model, if any.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited