Services
A ChatService implementation handles the tool-call loop and communication
with an LLM backend. This package provides the abstract base class; concrete
providers are separate packages or application code.
Navigation
- ChatService: abstract base class with tool-call loop, prompt loading
- Adding a new provider: implement
createStream()for a new backend @johannes.latzel/llm-chat-openai: first-party OpenAI provider, a completecreateStream()implementation to copy from- Inline reasoning: opt-in parsing of explicit reasoning markers in content
- Inline tool calls: opt-in parsing of explicit
<tool_call>blocks in content - Stream hooks: observe streamed chunks, summaries, and usage
- Interrupt: abort in-flight requests and re-send