FakeAiServer class final

Properties

behaviour → FakeAiServerBehaviour
How queries are answered.
final
cancelled → List<String>
Stream ids that received an agentSdk.cancelVce.
final
dripInterval → Duration
The pause between deltas under FakeAiServerBehaviour.slowDrip, and between thinking beats under FakeAiServerBehaviour.thinkAloudThenAnswer.
final
hashCode → int
The hash code for this object.
no setterinherited
port → int
no setter
receivedBytes → BytesBuilder
Every byte received, in order.
final
receivedText → String
Everything received, decoded as UTF-8 — the surface the privacy test searches for secrets.
no setter
recorded → List<Map<String, dynamic>>
The messages FakeAiServerBehaviour.replay sends, in order.
final
replies → List<String>
Text deltas returned for each query.
final
requests → List<Map<String, dynamic>>
Every decoded request, in order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thinkingBeats → int
How many stream_event beats precede the answer under FakeAiServerBehaviour.thinkAloudThenAnswer.
final
toolAnswers → List<Map<String, dynamic>>
The client's whole JSON-RPC answer to each agentSdk.toolCall, in order.
final
toolCalls ↔ List<(String, String, Map<String, Object?>)>
The calls made under FakeAiServerBehaviour.callTools, in order: (server, tool, args).
getter/setter pair
workspaceName → String
The workspace identity reported to the discovery scan.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

start({List<String> replies = const ['Hello from the fixture.'], FakeAiServerBehaviour behaviour = FakeAiServerBehaviour.succeed, String workspaceName = 'agent-sdk-fixture', Duration dripInterval = const Duration(milliseconds: 200), int thinkingBeats = 5, int port = 0, List<Map<String, dynamic>> recorded = const []}) → Future<FakeAiServer>