streamResponse method
Sends a message and returns a stream of structured responses from the backend.
The stream emits Map<String, dynamic>
objects representing parsed JSON
data chunks received via Server-Sent Events (SSE).
Requires initialize to have been called successfully.
The threadId
can be passed to maintain conversation context if supported by the backend.
Implementation
Stream<Map<String, dynamic>> streamResponse({
required String message,
String? threadId, // Add threadId for context
}) {
throw UnimplementedError('streamResponse() has not been implemented.');
}