Injectable Angular service that wraps injectStream.
Extend this class with your own @Injectable() service and call
super(options) in the constructor:
\@Injectable({ providedIn: 'root' })
export class ChatService extends StreamService {
constructor() {
super({ assistantId: 'agent', apiUrl: '...' });
}
}
The service exposes the same signals and methods as injectStream
(e.g. values, messages, isLoading, submit, stop).
Must be created within an Angular injection context (via DI or
runInInjectionContext).
class StreamService