Skip to main content
The Scoutline Agentic Models provide real-time streaming feedback, reducing perceived latency for complex legal reasoning.

Listening to Streams

Use the onMessage listener to capture incoming token chunks and citation signals.
chat.onMessage((chunk) => {
  console.log('Received token:', chunk.text);
  if (chunk.citations) {
    updateCitationUI(chunk.citations);
  }
});

Handling Finish

The onFinish event provides the complete assistant message and the final citation map for persistence in your local logs.