serve method
FakeAiServer
serve({
- List<
String> replies = const ['Hello from the fixture.'], - FakeAiServerBehaviour behaviour = FakeAiServerBehaviour.succeed,
- String workspaceName = 'agent-sdk-fixture',
Starts answering on this port as a FakeAiServer.
Implementation
FakeAiServer serve({
List<String> replies = const ['Hello from the fixture.'],
FakeAiServerBehaviour behaviour = FakeAiServerBehaviour.succeed,
String workspaceName = 'agent-sdk-fixture',
}) => FakeAiServer._serving(
this,
replies: replies,
behaviour: behaviour,
workspaceName: workspaceName,
dripInterval: const Duration(milliseconds: 200),
thinkingBeats: 5,
);