StubStatefulAgent class
A stub StatefulAgent that emits a start + completed event pair.
Used in tests and as a fallback when dart_agent_core is not on the
path.
- Implemented types
Constructors
-
StubStatefulAgent({Object? outcome, List<
String> toolCalls = const <String>[]})
Properties
- callCount ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- outcome → Object?
-
final
- receivedLlmClient ↔ LlmClient?
-
The LLM client the kernel passed in (FR-007).
getter/setter pair
- receivedSystemPrompt ↔ String?
-
The system prompt the kernel passed in (FR-006).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toolCalls
→ List<
String> -
Canonical tool names this stub "calls" during the mission.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runStream(
Mission mission, {String? systemPrompt, LlmClient? llmClient, ToolInvoker? invokeTool}) → Stream< MissionEvent> -
Streams typed events for
mission. The kernel orchestrates the tool registry + hooks around this call and supplies:override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited