serve method

FakeAiServer serve({
  1. List<String> replies = const ['Hello from the fixture.'],
  2. FakeAiServerBehaviour behaviour = FakeAiServerBehaviour.succeed,
  3. 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,
);