Chat Barrel Exports
Classes
Section titled “Classes”abstract BaseBackendAdapter
Section titled “abstract BaseBackendAdapter”Defined in: chat/backends/base.ts:34
Abstract base for backend adapters implementing IChatBackend (core only). Subclasses implement createService() for backend-specific service creation. Resume support is NOT required — subclasses can implement IResumableBackend separately.
Extended by
Section titled “Extended by”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BaseBackendAdapter(
name,options):BaseBackendAdapter
Defined in: chat/backends/base.ts:46
Parameters
Section titled “Parameters”string
options
Section titled “options”Returns
Section titled “Returns”Properties
Section titled “Properties”_agentConfig
Section titled “_agentConfig”
protectedreadonly_agentConfig:FullAgentConfig
Defined in: chat/backends/base.ts:39
readonlyname:string
Defined in: chat/backends/base.ts:35
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Implementation of
Section titled “Implementation of”Accessors
Section titled “Accessors”agentService
Section titled “agentService”Get Signature
Section titled “Get Signature”get agentService():
IAgentService
Defined in: chat/backends/base.ts:64
Returns
Section titled “Returns”currentModel
Section titled “currentModel”Get Signature
Section titled “Get Signature”get currentModel():
string|undefined
Defined in: chat/backends/base.ts:78
Current effective model
Returns
Section titled “Returns”string | undefined
Current effective model
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”assertNotDisposed()
Section titled “assertNotDisposed()”
protectedassertNotDisposed():void
Defined in: chat/backends/base.ts:244
Returns
Section titled “Returns”void
captureSessionId()
Section titled “captureSessionId()”
abstractprotectedcaptureSessionId(agent):void
Defined in: chat/backends/base.ts:242
Subclasses capture backend session ID from agent after streaming
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
createService()
Section titled “createService()”
abstractprotectedcreateService():IAgentService
Defined in: chat/backends/base.ts:62
Subclasses create their specific IAgentService
Returns
Section titled “Returns”dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/base.ts:196
Dispose resources
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”getOrCreateAgent()
Section titled “getOrCreateAgent()”
protectedgetOrCreateAgent(options?):IAgent
Defined in: chat/backends/base.ts:211
Get or create an agent. Model is passed per-call via RunOptions. Tools are passed per-call via SendMessageOptions — not baked into config. For persistent sessions, reuses agent when model matches.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/base.ts:186
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Implementation of
Section titled “Implementation of”sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/base.ts:90
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Implementation of
Section titled “Implementation of”setTools()
Section titled “setTools()”setTools():
void
Defined in: chat/backends/base.ts:86
Returns
Section titled “Returns”void
Deprecated
Section titled “Deprecated”No-op. Tools are passed per-call via SendMessageOptions.tools. Kept for backward compatibility with code that calls setTools() directly.
streamAgentEvents()
Section titled “streamAgentEvents()”
protectedstreamAgentEvents(agent,messages,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:144
Shared streaming helper: bridges agent events to chat events. Used by both streamMessage() and resume() to avoid duplication.
Parameters
Section titled “Parameters”messages
Section titled “messages”Message[]
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:124
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Implementation of
Section titled “Implementation of”validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/base.ts:191
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Implementation of
Section titled “Implementation of”ClaudeChatAdapter
Section titled “ClaudeChatAdapter”Defined in: chat/backends/claude.ts:29
Backend adapter for Claude CLI. Uses persistent session mode for session resume via Claude’s session_id.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClaudeChatAdapter(
options):ClaudeChatAdapter
Defined in: chat/backends/claude.ts:32
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”ResumableChatAdapter.constructor
Properties
Section titled “Properties”_agentConfig
Section titled “_agentConfig”
protectedreadonly_agentConfig:FullAgentConfig
Defined in: chat/backends/base.ts:39
Inherited from
Section titled “Inherited from”ResumableChatAdapter._agentConfig
readonlyname:string
Defined in: chat/backends/base.ts:35
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”agentService
Section titled “agentService”Get Signature
Section titled “Get Signature”get agentService():
IAgentService
Defined in: chat/backends/base.ts:64
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ResumableChatAdapter.agentService
backendSessionId
Section titled “backendSessionId”Get Signature
Section titled “Get Signature”get backendSessionId():
string|null
Defined in: chat/backends/resumable.ts:40
The backend session ID from the last stream, or null if not yet streamed
Returns
Section titled “Returns”string | null
The backend session ID from the last stream, or null if not yet streamed
Inherited from
Section titled “Inherited from”ResumableChatAdapter.backendSessionId
currentModel
Section titled “currentModel”Get Signature
Section titled “Get Signature”get currentModel():
string|undefined
Defined in: chat/backends/base.ts:78
Current effective model
Returns
Section titled “Returns”string | undefined
Current effective model
Inherited from
Section titled “Inherited from”ResumableChatAdapter.currentModel
Methods
Section titled “Methods”assertNotDisposed()
Section titled “assertNotDisposed()”
protectedassertNotDisposed():void
Defined in: chat/backends/base.ts:244
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ResumableChatAdapter.assertNotDisposed
canResume()
Section titled “canResume()”canResume():
boolean
Defined in: chat/backends/resumable.ts:44
Whether this adapter supports session resume
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”ResumableChatAdapter.canResume
captureSessionId()
Section titled “captureSessionId()”
protectedcaptureSessionId(agent):void
Defined in: chat/backends/resumable.ts:82
Subclasses capture backend session ID from agent after streaming
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ResumableChatAdapter.captureSessionId
createService()
Section titled “createService()”
protectedcreateService():IAgentService
Defined in: chat/backends/claude.ts:37
Subclasses create their specific IAgentService
Returns
Section titled “Returns”Overrides
Section titled “Overrides”ResumableChatAdapter.createService
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/base.ts:196
Dispose resources
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”getOrCreateAgent()
Section titled “getOrCreateAgent()”
protectedgetOrCreateAgent(options?):IAgent
Defined in: chat/backends/base.ts:211
Get or create an agent. Model is passed per-call via RunOptions. Tools are passed per-call via SendMessageOptions — not baked into config. For persistent sessions, reuses agent when model matches.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ResumableChatAdapter.getOrCreateAgent
listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/base.ts:186
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.listModels
resume()
Section titled “resume()”resume(
session,backendSessionId,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/resumable.ts:48
Resume a previous session by its backend session ID. Streams events from the resumed session.
Parameters
Section titled “Parameters”session
Section titled “session”backendSessionId
Section titled “backendSessionId”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Throws
Section titled “Throws”ChatError with SESSION_EXPIRED if session is no longer valid
Throws
Section titled “Throws”ChatError with SESSION_NOT_FOUND if session ID is unknown
Inherited from
Section titled “Inherited from”sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/base.ts:90
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.sendMessage
setTools()
Section titled “setTools()”setTools():
void
Defined in: chat/backends/base.ts:86
Returns
Section titled “Returns”void
Deprecated
Section titled “Deprecated”No-op. Tools are passed per-call via SendMessageOptions.tools. Kept for backward compatibility with code that calls setTools() directly.
Inherited from
Section titled “Inherited from”streamAgentEvents()
Section titled “streamAgentEvents()”
protectedstreamAgentEvents(agent,messages,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:144
Shared streaming helper: bridges agent events to chat events. Used by both streamMessage() and resume() to avoid duplication.
Parameters
Section titled “Parameters”messages
Section titled “messages”Message[]
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.streamAgentEvents
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:124
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.streamMessage
validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/base.ts:191
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Inherited from
Section titled “Inherited from”CopilotChatAdapter
Section titled “CopilotChatAdapter”Defined in: chat/backends/copilot.ts:29
Backend adapter for GitHub Copilot CLI. Uses persistent session mode for session resume via CLI session ID.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CopilotChatAdapter(
options):CopilotChatAdapter
Defined in: chat/backends/copilot.ts:32
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”ResumableChatAdapter.constructor
Properties
Section titled “Properties”_agentConfig
Section titled “_agentConfig”
protectedreadonly_agentConfig:FullAgentConfig
Defined in: chat/backends/base.ts:39
Inherited from
Section titled “Inherited from”ResumableChatAdapter._agentConfig
readonlyname:string
Defined in: chat/backends/base.ts:35
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”agentService
Section titled “agentService”Get Signature
Section titled “Get Signature”get agentService():
IAgentService
Defined in: chat/backends/base.ts:64
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ResumableChatAdapter.agentService
backendSessionId
Section titled “backendSessionId”Get Signature
Section titled “Get Signature”get backendSessionId():
string|null
Defined in: chat/backends/resumable.ts:40
The backend session ID from the last stream, or null if not yet streamed
Returns
Section titled “Returns”string | null
The backend session ID from the last stream, or null if not yet streamed
Inherited from
Section titled “Inherited from”ResumableChatAdapter.backendSessionId
currentModel
Section titled “currentModel”Get Signature
Section titled “Get Signature”get currentModel():
string|undefined
Defined in: chat/backends/base.ts:78
Current effective model
Returns
Section titled “Returns”string | undefined
Current effective model
Inherited from
Section titled “Inherited from”ResumableChatAdapter.currentModel
Methods
Section titled “Methods”assertNotDisposed()
Section titled “assertNotDisposed()”
protectedassertNotDisposed():void
Defined in: chat/backends/base.ts:244
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ResumableChatAdapter.assertNotDisposed
canResume()
Section titled “canResume()”canResume():
boolean
Defined in: chat/backends/resumable.ts:44
Whether this adapter supports session resume
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”ResumableChatAdapter.canResume
captureSessionId()
Section titled “captureSessionId()”
protectedcaptureSessionId(agent):void
Defined in: chat/backends/resumable.ts:82
Subclasses capture backend session ID from agent after streaming
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ResumableChatAdapter.captureSessionId
createService()
Section titled “createService()”
protectedcreateService():IAgentService
Defined in: chat/backends/copilot.ts:37
Subclasses create their specific IAgentService
Returns
Section titled “Returns”Overrides
Section titled “Overrides”ResumableChatAdapter.createService
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/base.ts:196
Dispose resources
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”getOrCreateAgent()
Section titled “getOrCreateAgent()”
protectedgetOrCreateAgent(options?):IAgent
Defined in: chat/backends/base.ts:211
Get or create an agent. Model is passed per-call via RunOptions. Tools are passed per-call via SendMessageOptions — not baked into config. For persistent sessions, reuses agent when model matches.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”ResumableChatAdapter.getOrCreateAgent
listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/base.ts:186
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.listModels
resume()
Section titled “resume()”resume(
session,backendSessionId,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/resumable.ts:48
Resume a previous session by its backend session ID. Streams events from the resumed session.
Parameters
Section titled “Parameters”session
Section titled “session”backendSessionId
Section titled “backendSessionId”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Throws
Section titled “Throws”ChatError with SESSION_EXPIRED if session is no longer valid
Throws
Section titled “Throws”ChatError with SESSION_NOT_FOUND if session ID is unknown
Inherited from
Section titled “Inherited from”sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/base.ts:90
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.sendMessage
setTools()
Section titled “setTools()”setTools():
void
Defined in: chat/backends/base.ts:86
Returns
Section titled “Returns”void
Deprecated
Section titled “Deprecated”No-op. Tools are passed per-call via SendMessageOptions.tools. Kept for backward compatibility with code that calls setTools() directly.
Inherited from
Section titled “Inherited from”streamAgentEvents()
Section titled “streamAgentEvents()”
protectedstreamAgentEvents(agent,messages,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:144
Shared streaming helper: bridges agent events to chat events. Used by both streamMessage() and resume() to avoid duplication.
Parameters
Section titled “Parameters”messages
Section titled “messages”Message[]
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.streamAgentEvents
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:124
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”ResumableChatAdapter.streamMessage
validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/base.ts:191
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Inherited from
Section titled “Inherited from”InProcessChatTransport
Section titled “InProcessChatTransport”Defined in: chat/backends/in-process-transport.ts:35
In-process transport for ChatEvent streaming. Producer pushes events via IChatTransport.send(), consumer reads via async iteration.
Example
Section titled “Example”const transport = new InProcessChatTransport();
// Consumer side (async iteration)(async () => { for await (const event of transport) { console.log("Received:", event); }})();
// Producer side (via streamToTransport or manual)transport.send({ type: "message:start", messageId, role: "assistant" });transport.send({ type: "message:delta", messageId, text: "Hello" });transport.close();Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InProcessChatTransport():
InProcessChatTransport
Returns
Section titled “Returns”Accessors
Section titled “Accessors”isOpen
Section titled “isOpen”Get Signature
Section titled “Get Signature”get isOpen():
boolean
Defined in: chat/backends/in-process-transport.ts:41
Whether the transport is still open
Returns
Section titled “Returns”boolean
Whether the transport is still open
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”[asyncIterator]()
Section titled “[asyncIterator]()”[asyncIterator]():
AsyncIterator<ChatEvent>
Defined in: chat/backends/in-process-transport.ts:94
Returns
Section titled “Returns”AsyncIterator<ChatEvent>
close()
Section titled “close()”close():
void
Defined in: chat/backends/in-process-transport.ts:59
Signal stream completion and close the connection
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error(
err):void
Defined in: chat/backends/in-process-transport.ts:71
Signal an error to the client
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”send()
Section titled “send()”send(
event):void
Defined in: chat/backends/in-process-transport.ts:45
Send a single chat event to the client
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”ListenerSet
Section titled “ListenerSet”Defined in: chat/listener-set.ts:12
Generic listener set utility for subscribe/notify patterns.
Encapsulates the recurring pattern of:
- Set
storage - add(callback) → unsubscribe function
- notify(…args) with try/catch per listener
- clear() for disposal
Type Parameters
Section titled “Type Parameters”T extends (…args) => void
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ListenerSet<
T>():ListenerSet<T>
Returns
Section titled “Returns”ListenerSet<T>
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get size():
number
Defined in: chat/listener-set.ts:34
Current number of listeners.
Returns
Section titled “Returns”number
Methods
Section titled “Methods”add(
callback): () =>void
Defined in: chat/listener-set.ts:16
Add a listener. Returns an unsubscribe function.
Parameters
Section titled “Parameters”callback
Section titled “callback”T
Returns
Section titled “Returns”():
void
Returns
Section titled “Returns”void
clear()
Section titled “clear()”clear():
void
Defined in: chat/listener-set.ts:29
Remove all listeners.
Returns
Section titled “Returns”void
notify()
Section titled “notify()”notify(…
args):void
Defined in: chat/listener-set.ts:22
Notify all listeners with the given arguments. Errors are isolated per listener.
Parameters
Section titled “Parameters”…Parameters<T>
Returns
Section titled “Returns”void
MockLLMChatAdapter
Section titled “MockLLMChatAdapter”Defined in: chat/backends/mock-llm.ts:27
Backend adapter for Mock LLM. Zero-auth, deterministic, fully configurable for E2E testing.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MockLLMChatAdapter(
options):MockLLMChatAdapter
Defined in: chat/backends/mock-llm.ts:28
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”BaseBackendAdapter.constructor
Properties
Section titled “Properties”_agentConfig
Section titled “_agentConfig”
protectedreadonly_agentConfig:FullAgentConfig
Defined in: chat/backends/base.ts:39
Inherited from
Section titled “Inherited from”BaseBackendAdapter._agentConfig
readonlyname:string
Defined in: chat/backends/base.ts:35
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”agentService
Section titled “agentService”Get Signature
Section titled “Get Signature”get agentService():
IAgentService
Defined in: chat/backends/base.ts:64
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”BaseBackendAdapter.agentService
currentModel
Section titled “currentModel”Get Signature
Section titled “Get Signature”get currentModel():
string|undefined
Defined in: chat/backends/base.ts:78
Current effective model
Returns
Section titled “Returns”string | undefined
Current effective model
Inherited from
Section titled “Inherited from”BaseBackendAdapter.currentModel
Methods
Section titled “Methods”assertNotDisposed()
Section titled “assertNotDisposed()”
protectedassertNotDisposed():void
Defined in: chat/backends/base.ts:244
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BaseBackendAdapter.assertNotDisposed
captureSessionId()
Section titled “captureSessionId()”
protectedcaptureSessionId(_agent):void
Defined in: chat/backends/mock-llm.ts:43
Subclasses capture backend session ID from agent after streaming
Parameters
Section titled “Parameters”_agent
Section titled “_agent”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”BaseBackendAdapter.captureSessionId
createService()
Section titled “createService()”
protectedcreateService():IAgentService
Defined in: chat/backends/mock-llm.ts:38
Subclasses create their specific IAgentService
Returns
Section titled “Returns”Overrides
Section titled “Overrides”BaseBackendAdapter.createService
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/base.ts:196
Dispose resources
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”getOrCreateAgent()
Section titled “getOrCreateAgent()”
protectedgetOrCreateAgent(options?):IAgent
Defined in: chat/backends/base.ts:211
Get or create an agent. Model is passed per-call via RunOptions. Tools are passed per-call via SendMessageOptions — not baked into config. For persistent sessions, reuses agent when model matches.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”BaseBackendAdapter.getOrCreateAgent
listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/base.ts:186
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Inherited from
Section titled “Inherited from”sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/base.ts:90
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.sendMessage
setTools()
Section titled “setTools()”setTools():
void
Defined in: chat/backends/base.ts:86
Returns
Section titled “Returns”void
Deprecated
Section titled “Deprecated”No-op. Tools are passed per-call via SendMessageOptions.tools. Kept for backward compatibility with code that calls setTools() directly.
Inherited from
Section titled “Inherited from”streamAgentEvents()
Section titled “streamAgentEvents()”
protectedstreamAgentEvents(agent,messages,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:144
Shared streaming helper: bridges agent events to chat events. Used by both streamMessage() and resume() to avoid duplication.
Parameters
Section titled “Parameters”messages
Section titled “messages”Message[]
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.streamAgentEvents
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:124
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.streamMessage
validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/base.ts:191
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Inherited from
Section titled “Inherited from”SSEChatTransport
Section titled “SSEChatTransport”Defined in: chat/backends/transport.ts:58
Server-Sent Events transport for ChatEvent streaming.
Sends events as data: JSON\n\n lines with SSE headers.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SSEChatTransport(
res,options?):SSEChatTransport
Defined in: chat/backends/transport.ts:63
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Accessors
Section titled “Accessors”isOpen
Section titled “isOpen”Get Signature
Section titled “Get Signature”get isOpen():
boolean
Defined in: chat/backends/transport.ts:94
Whether the transport is still open
Returns
Section titled “Returns”boolean
Whether the transport is still open
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: chat/backends/transport.ts:103
Signal stream completion and close the connection
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error(
err):void
Defined in: chat/backends/transport.ts:111
Signal an error to the client
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”send()
Section titled “send()”send(
event):void
Defined in: chat/backends/transport.ts:98
Send a single chat event to the client
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”VercelAIChatAdapter
Section titled “VercelAIChatAdapter”Defined in: chat/backends/vercel-ai.ts:32
Backend adapter for Vercel AI SDK (API-based). Stateless — each call creates a fresh agent. Does not support resume. Implements IChatBackend only (no IResumableBackend).
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VercelAIChatAdapter(
options):VercelAIChatAdapter
Defined in: chat/backends/vercel-ai.ts:35
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”BaseBackendAdapter.constructor
Properties
Section titled “Properties”_agentConfig
Section titled “_agentConfig”
protectedreadonly_agentConfig:FullAgentConfig
Defined in: chat/backends/base.ts:39
Inherited from
Section titled “Inherited from”BaseBackendAdapter._agentConfig
readonlyname:string
Defined in: chat/backends/base.ts:35
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”agentService
Section titled “agentService”Get Signature
Section titled “Get Signature”get agentService():
IAgentService
Defined in: chat/backends/base.ts:64
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”BaseBackendAdapter.agentService
currentModel
Section titled “currentModel”Get Signature
Section titled “Get Signature”get currentModel():
string|undefined
Defined in: chat/backends/base.ts:78
Current effective model
Returns
Section titled “Returns”string | undefined
Current effective model
Inherited from
Section titled “Inherited from”BaseBackendAdapter.currentModel
Methods
Section titled “Methods”assertNotDisposed()
Section titled “assertNotDisposed()”
protectedassertNotDisposed():void
Defined in: chat/backends/base.ts:244
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BaseBackendAdapter.assertNotDisposed
captureSessionId()
Section titled “captureSessionId()”
protectedcaptureSessionId(_agent):void
Defined in: chat/backends/vercel-ai.ts:48
Subclasses capture backend session ID from agent after streaming
Parameters
Section titled “Parameters”_agent
Section titled “_agent”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”BaseBackendAdapter.captureSessionId
createService()
Section titled “createService()”
protectedcreateService():IAgentService
Defined in: chat/backends/vercel-ai.ts:41
Subclasses create their specific IAgentService
Returns
Section titled “Returns”Overrides
Section titled “Overrides”BaseBackendAdapter.createService
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/base.ts:196
Dispose resources
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”getOrCreateAgent()
Section titled “getOrCreateAgent()”
protectedgetOrCreateAgent(options?):IAgent
Defined in: chat/backends/base.ts:211
Get or create an agent. Model is passed per-call via RunOptions. Tools are passed per-call via SendMessageOptions — not baked into config. For persistent sessions, reuses agent when model matches.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”BaseBackendAdapter.getOrCreateAgent
listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/base.ts:186
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Inherited from
Section titled “Inherited from”sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/base.ts:90
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.sendMessage
setTools()
Section titled “setTools()”setTools():
void
Defined in: chat/backends/base.ts:86
Returns
Section titled “Returns”void
Deprecated
Section titled “Deprecated”No-op. Tools are passed per-call via SendMessageOptions.tools. Kept for backward compatibility with code that calls setTools() directly.
Inherited from
Section titled “Inherited from”streamAgentEvents()
Section titled “streamAgentEvents()”
protectedstreamAgentEvents(agent,messages,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:144
Shared streaming helper: bridges agent events to chat events. Used by both streamMessage() and resume() to avoid duplication.
Parameters
Section titled “Parameters”messages
Section titled “messages”Message[]
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.streamAgentEvents
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/base.ts:124
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”BaseBackendAdapter.streamMessage
validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/base.ts:191
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Inherited from
Section titled “Inherited from”WsChatTransport
Section titled “WsChatTransport”Defined in: chat/backends/ws-transport.ts:47
WebSocket transport for ChatEvent streaming. Sends events as JSON messages over a WebSocket connection.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WsChatTransport(
ws,options?):WsChatTransport
Defined in: chat/backends/ws-transport.ts:53
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Accessors
Section titled “Accessors”isOpen
Section titled “isOpen”Get Signature
Section titled “Get Signature”get isOpen():
boolean
Defined in: chat/backends/ws-transport.ts:78
Whether the transport is still open
Returns
Section titled “Returns”boolean
Whether the transport is still open
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: chat/backends/ws-transport.ts:87
Signal stream completion and close the connection
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error(
err):void
Defined in: chat/backends/ws-transport.ts:96
Signal an error to the client
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”send()
Section titled “send()”send(
event):void
Defined in: chat/backends/ws-transport.ts:82
Send a single chat event to the client
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Interfaces
Section titled “Interfaces”BackendAdapterOptions
Section titled “BackendAdapterOptions”Defined in: chat/backends/types.ts:23
Options for creating a backend adapter
Extended by
Section titled “Extended by”CopilotChatAdapterOptionsClaudeChatAdapterOptionsVercelAIChatAdapterOptionsMockLLMChatAdapterOptions
Properties
Section titled “Properties”agentConfig
Section titled “agentConfig”agentConfig:
FullAgentConfig
Defined in: chat/backends/types.ts:25
Agent configuration (model, systemPrompt, tools, etc.)
agentService?
Section titled “agentService?”
optionalagentService:IAgentService
Defined in: chat/backends/types.ts:27
Pre-created agent service (if adapter should not own lifecycle)
agentServiceFactory()?
Section titled “agentServiceFactory()?”
optionalagentServiceFactory: () =>IAgentService
Defined in: chat/backends/types.ts:29
Factory for lazy service creation (called on first use, not at construction)
Returns
Section titled “Returns”ChatMessage
Section titled “ChatMessage”Defined in: chat/types.ts:95
A single chat message — the fundamental unit of conversation
Type Parameters
Section titled “Type Parameters”TMetadata
Section titled “TMetadata”TMetadata = unknown
Properties
Section titled “Properties”createdAt
Section titled “createdAt”createdAt:
string
Defined in: chat/types.ts:100
id:
ChatId
Defined in: chat/types.ts:96
metadata?
Section titled “metadata?”
optionalmetadata:TMetadata
Defined in: chat/types.ts:99
parts:
MessagePart[]
Defined in: chat/types.ts:98
role:
ChatRole
Defined in: chat/types.ts:97
status
Section titled “status”status:
MessageStatus
Defined in: chat/types.ts:102
updatedAt?
Section titled “updatedAt?”
optionalupdatedAt:string
Defined in: chat/types.ts:101
ChatMessageMetadata
Section titled “ChatMessageMetadata”Defined in: chat/types.ts:82
Metadata attached to messages — useful preset for the TMetadata generic
Properties
Section titled “Properties”backend?
Section titled “backend?”
optionalbackend:string
Defined in: chat/types.ts:84
custom?
Section titled “custom?”
optionalcustom:Record<string,unknown>
Defined in: chat/types.ts:88
estimatedTokens?
Section titled “estimatedTokens?”
optionalestimatedTokens:number
Defined in: chat/types.ts:87
isSummary?
Section titled “isSummary?”
optionalisSummary:boolean
Defined in: chat/types.ts:86
model?
Section titled “model?”
optionalmodel:string
Defined in: chat/types.ts:83
usage?
Section titled “usage?”
optionalusage:UsageData
Defined in: chat/types.ts:85
ChatMiddleware
Section titled “ChatMiddleware”Defined in: chat/types.ts:247
Runtime-level middleware for the send/receive lifecycle. Different from EventMiddleware which operates at the event bus level.
Methods
Section titled “Methods”onAfterReceive()?
Section titled “onAfterReceive()?”
optionalonAfterReceive(message,context):ChatMessage<unknown> |Promise<ChatMessage<unknown>>
Defined in: chat/types.ts:253
Transform completed message after receiving from backend
Parameters
Section titled “Parameters”message
Section titled “message”context
Section titled “context”Returns
Section titled “Returns”ChatMessage<unknown> | Promise<ChatMessage<unknown>>
onBeforeSend()?
Section titled “onBeforeSend()?”
optionalonBeforeSend(message,context):ChatMessage<unknown> |Promise<ChatMessage<unknown> |null> |null
Defined in: chat/types.ts:249
Transform message before sending to backend. Return null to reject the send.
Parameters
Section titled “Parameters”message
Section titled “message”context
Section titled “context”Returns
Section titled “Returns”ChatMessage<unknown> | Promise<ChatMessage<unknown> | null> | null
onError()?
Section titled “onError()?”
optionalonError(error,context):Error|Promise<Error|null> |null
Defined in: chat/types.ts:255
Intercept errors — return null to suppress, return error to propagate
Parameters
Section titled “Parameters”Error
context
Section titled “context”Returns
Section titled “Returns”Error | Promise<Error | null> | null
onEvent()?
Section titled “onEvent()?”
optionalonEvent(event,context):ChatEvent|Promise<ChatEvent | null> |null
Defined in: chat/types.ts:251
Transform/intercept stream events
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”ChatEvent | Promise<ChatEvent | null> | null
ChatMiddlewareContext
Section titled “ChatMiddlewareContext”Defined in: chat/types.ts:240
Context passed to ChatMiddleware hooks
Properties
Section titled “Properties”sessionId
Section titled “sessionId”sessionId:
ChatId
Defined in: chat/types.ts:241
signal
Section titled “signal”signal:
AbortSignal
Defined in: chat/types.ts:242
ChatSession
Section titled “ChatSession”Defined in: chat/types.ts:139
Chat session — a conversation with ordered messages (pure serializable data)
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TCustom
Section titled “TCustom”TCustom extends Record<string, unknown> = Record<string, unknown>
Properties
Section titled “Properties”backendSessionId?
Section titled “backendSessionId?”
optionalbackendSessionId:string
Defined in: chat/types.ts:148
config
Section titled “config”config:
ChatSessionConfig
Defined in: chat/types.ts:143
createdAt
Section titled “createdAt”createdAt:
string
Defined in: chat/types.ts:146
id:
ChatId
Defined in: chat/types.ts:140
messages
Section titled “messages”messages:
ChatMessage<unknown>[]
Defined in: chat/types.ts:142
metadata
Section titled “metadata”metadata:
ChatSessionMetadata<TCustom>
Defined in: chat/types.ts:144
status
Section titled “status”status:
"active"
Defined in: chat/types.ts:145
title?
Section titled “title?”
optionaltitle:string
Defined in: chat/types.ts:141
updatedAt
Section titled “updatedAt”updatedAt:
string
Defined in: chat/types.ts:147
ChatSessionConfig
Section titled “ChatSessionConfig”Defined in: chat/types.ts:110
Session configuration snapshot
Properties
Section titled “Properties”backend
Section titled “backend”backend:
string
Defined in: chat/types.ts:112
maxTokens?
Section titled “maxTokens?”
optionalmaxTokens:number
Defined in: chat/types.ts:115
model:
string
Defined in: chat/types.ts:111
systemPrompt?
Section titled “systemPrompt?”
optionalsystemPrompt:string
Defined in: chat/types.ts:113
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: chat/types.ts:114
FilePart
Section titled “FilePart”Defined in: chat/types.ts:72
File attachment part (base64-encoded data)
Properties
Section titled “Properties”data:
string
Defined in: chat/types.ts:72
mimeType
Section titled “mimeType”mimeType:
string
Defined in: chat/types.ts:72
name:
string
Defined in: chat/types.ts:72
status
Section titled “status”status:
PartStatus
Defined in: chat/types.ts:72
type:
"file"
Defined in: chat/types.ts:72
IChatBackend
Section titled “IChatBackend”Defined in: chat/backends/types.ts:42
Core chat backend — send, stream, models, validate, dispose. All backends implement this. Resume support is optional.
Note: agentService is intentionally NOT on this interface.
It’s an implementation detail exposed on BaseBackendAdapter for
advanced consumers who need direct service access.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”currentModel
Section titled “currentModel”
readonlycurrentModel:string|undefined
Defined in: chat/backends/types.ts:70
Current effective model
readonlyname:string
Defined in: chat/backends/types.ts:44
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/types.ts:67
Dispose resources
Returns
Section titled “Returns”Promise<void>
listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/types.ts:61
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/types.ts:47
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/types.ts:54
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/types.ts:64
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
IChatTransport
Section titled “IChatTransport”Defined in: chat/backends/transport.ts:16
Abstraction for delivering chat events to a client. Implementations handle protocol details (SSE, WebSocket, etc.).
Properties
Section titled “Properties”isOpen
Section titled “isOpen”
readonlyisOpen:boolean
Defined in: chat/backends/transport.ts:27
Whether the transport is still open
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: chat/backends/transport.ts:21
Signal stream completion and close the connection
Returns
Section titled “Returns”void
error()
Section titled “error()”error(
err):void
Defined in: chat/backends/transport.ts:24
Signal an error to the client
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
send()
Section titled “send()”send(
event):void
Defined in: chat/backends/transport.ts:18
Send a single chat event to the client
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
IProviderStore
Section titled “IProviderStore”Defined in: chat/provider-types.ts:30
Provider storage interface for server-side provider management
Methods
Section titled “Methods”create()
Section titled “create()”create(
config):Promise<void>
Defined in: chat/provider-types.ts:32
Create a new provider. Generates UUID if id not set on config.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”Promise<void>
delete()
Section titled “delete()”delete(
id):Promise<void>
Defined in: chat/provider-types.ts:38
Delete a provider by id.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
dispose()?
Section titled “dispose()?”
optionaldispose():Promise<void>
Defined in: chat/provider-types.ts:42
Release any resources held by this store (optional).
Returns
Section titled “Returns”Promise<void>
get(
id):Promise<ProviderConfig|null>
Defined in: chat/provider-types.ts:34
Get a provider by id. Returns null if not found.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ProviderConfig | null>
list()
Section titled “list()”list():
Promise<ProviderConfig[]>
Defined in: chat/provider-types.ts:40
List all providers.
Returns
Section titled “Returns”Promise<ProviderConfig[]>
update()
Section titled “update()”update(
id,changes):Promise<void>
Defined in: chat/provider-types.ts:36
Update an existing provider. Throws if not found.
Parameters
Section titled “Parameters”string
changes
Section titled “changes”Partial<Omit<ProviderConfig, "id" | "createdAt">>
Returns
Section titled “Returns”Promise<void>
IResumableBackend
Section titled “IResumableBackend”Defined in: chat/backends/types.ts:80
Extended backend with session resume capabilities.
Only backends with persistent sessions (Copilot, Claude) implement this.
Use isResumableBackend() to type-narrow at runtime.
Extends
Section titled “Extends”Properties
Section titled “Properties”backendSessionId
Section titled “backendSessionId”
readonlybackendSessionId:string|null
Defined in: chat/backends/types.ts:97
The backend session ID from the last stream, or null if not yet streamed
currentModel
Section titled “currentModel”
readonlycurrentModel:string|undefined
Defined in: chat/backends/types.ts:70
Current effective model
Inherited from
Section titled “Inherited from”
readonlyname:string
Defined in: chat/backends/types.ts:44
Backend name (e.g. “copilot”, “claude”, “vercel-ai”)
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”canResume()
Section titled “canResume()”canResume():
boolean
Defined in: chat/backends/types.ts:82
Whether this adapter supports session resume
Returns
Section titled “Returns”boolean
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: chat/backends/types.ts:67
Dispose resources
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”listModels()
Section titled “listModels()”listModels():
Promise<ModelInfo[]>
Defined in: chat/backends/types.ts:61
List available models
Returns
Section titled “Returns”Promise<ModelInfo[]>
Inherited from
Section titled “Inherited from”resume()
Section titled “resume()”resume(
session,backendSessionId,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/types.ts:90
Resume a previous session by its backend session ID. Streams events from the resumed session.
Parameters
Section titled “Parameters”session
Section titled “session”backendSessionId
Section titled “backendSessionId”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Throws
Section titled “Throws”ChatError with SESSION_EXPIRED if session is no longer valid
Throws
Section titled “Throws”ChatError with SESSION_NOT_FOUND if session ID is unknown
sendMessage()
Section titled “sendMessage()”sendMessage(
session,message,options?):Promise<ChatMessage<unknown>>
Defined in: chat/backends/types.ts:47
Send a message and receive a complete response
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ChatMessage<unknown>>
Inherited from
Section titled “Inherited from”streamMessage()
Section titled “streamMessage()”streamMessage(
session,message,options?):AsyncIterable<ChatEvent>
Defined in: chat/backends/types.ts:54
Stream a message response as ChatEvents
Parameters
Section titled “Parameters”session
Section titled “session”message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
Inherited from
Section titled “Inherited from”validate()
Section titled “validate()”validate():
Promise<{errors:string[];valid:boolean; }>
Defined in: chat/backends/types.ts:64
Validate backend configuration/credentials
Returns
Section titled “Returns”Promise<{ errors: string[]; valid: boolean; }>
Inherited from
Section titled “Inherited from”ObservableSession
Section titled “ObservableSession”Defined in: chat/types.ts:156
Reactive wrapper around ChatSession — provides subscribe/getSnapshot for React useSyncExternalStore integration and lastMessage convenience getter. Session stores may optionally return ObservableSession instances.
Extends
Section titled “Extends”ChatSession<TCustom>
Type Parameters
Section titled “Type Parameters”TCustom
Section titled “TCustom”TCustom extends Record<string, unknown> = Record<string, unknown>
Properties
Section titled “Properties”backendSessionId?
Section titled “backendSessionId?”
optionalbackendSessionId:string
Defined in: chat/types.ts:148
Inherited from
Section titled “Inherited from”config
Section titled “config”config:
ChatSessionConfig
Defined in: chat/types.ts:143
Inherited from
Section titled “Inherited from”createdAt
Section titled “createdAt”createdAt:
string
Defined in: chat/types.ts:146
Inherited from
Section titled “Inherited from”id:
ChatId
Defined in: chat/types.ts:140
Inherited from
Section titled “Inherited from”lastMessage
Section titled “lastMessage”
readonlylastMessage:ChatMessage<unknown> |undefined
Defined in: chat/types.ts:163
Last message in the session
messages
Section titled “messages”messages:
ChatMessage<unknown>[]
Defined in: chat/types.ts:142
Inherited from
Section titled “Inherited from”metadata
Section titled “metadata”metadata:
ChatSessionMetadata<TCustom>
Defined in: chat/types.ts:144
Inherited from
Section titled “Inherited from”status
Section titled “status”status:
"active"
Defined in: chat/types.ts:145
Inherited from
Section titled “Inherited from”title?
Section titled “title?”
optionaltitle:string
Defined in: chat/types.ts:141
Inherited from
Section titled “Inherited from”updatedAt
Section titled “updatedAt”updatedAt:
string
Defined in: chat/types.ts:147
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”getSnapshot()
Section titled “getSnapshot()”getSnapshot():
ChatSession<TCustom>
Defined in: chat/types.ts:161
Get immutable snapshot of session state (for React useSyncExternalStore)
Returns
Section titled “Returns”ChatSession<TCustom>
subscribe()
Section titled “subscribe()”subscribe(
callback): () =>void
Defined in: chat/types.ts:159
Subscribe to session changes (for React useSyncExternalStore)
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
Returns
Section titled “Returns”():
void
Returns
Section titled “Returns”void
ProviderConfig
Section titled “ProviderConfig”Defined in: chat/provider-types.ts:14
A user-configured provider combining backend + model + label
Properties
Section titled “Properties”backend
Section titled “backend”backend:
string
Defined in: chat/provider-types.ts:18
Backend name (copilot, claude, vercel-ai)
createdAt
Section titled “createdAt”createdAt:
number
Defined in: chat/provider-types.ts:24
Creation timestamp (Date.now())
id:
string
Defined in: chat/provider-types.ts:16
Unique identifier (UUID or slug)
label:
string
Defined in: chat/provider-types.ts:22
User-facing display name
model:
string
Defined in: chat/provider-types.ts:20
Model identifier
ReasoningPart
Section titled “ReasoningPart”Defined in: chat/types.ts:66
Model reasoning/thinking content part
Properties
Section titled “Properties”status
Section titled “status”status:
PartStatus
Defined in: chat/types.ts:66
text:
string
Defined in: chat/types.ts:66
type:
"reasoning"
Defined in: chat/types.ts:66
RuntimeSendOptions
Section titled “RuntimeSendOptions”Defined in: chat/types.ts:273
Options for runtime.send() — requires backend routing info
Properties
Section titled “Properties”backend
Section titled “backend”backend:
string
Defined in: chat/types.ts:275
Backend to route this request to (key in backends map)
context?
Section titled “context?”
optionalcontext:Record<string,unknown>
Defined in: chat/types.ts:285
Request-scoped context
credentials
Section titled “credentials”credentials:
AuthToken
Defined in: chat/types.ts:277
Authentication credentials for the backend factory
model:
string
Defined in: chat/types.ts:279
Model to use for this request
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: chat/types.ts:283
Abort signal
systemPrompt?
Section titled “systemPrompt?”
optionalsystemPrompt:string
Defined in: chat/types.ts:281
Per-call system prompt override (forwarded to the backend agent)
tools?
Section titled “tools?”
optionaltools:ToolDefinition<unknown>[]
Defined in: chat/types.ts:287
Additional tools
SendMessageOptions
Section titled “SendMessageOptions”Defined in: chat/types.ts:261
Options for sending a message to a provider
Properties
Section titled “Properties”context?
Section titled “context?”
optionalcontext:Record<string,unknown>
Defined in: chat/types.ts:267
model?
Section titled “model?”
optionalmodel:string
Defined in: chat/types.ts:264
Model to use for this request. Required for server-side runtime.send().
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: chat/types.ts:262
systemPrompt?
Section titled “systemPrompt?”
optionalsystemPrompt:string
Defined in: chat/types.ts:266
Per-call system prompt override (forwarded to the backend agent)
tools?
Section titled “tools?”
optionaltools:ToolDefinition<unknown>[]
Defined in: chat/types.ts:269
Additional tools to include in this request
SessionInfo
Section titled “SessionInfo”Defined in: chat/types.ts:167
Lightweight session info for listing (without full message array)
Properties
Section titled “Properties”createdAt
Section titled “createdAt”createdAt:
string
Defined in: chat/types.ts:173
id:
ChatId
Defined in: chat/types.ts:168
lastMessage?
Section titled “lastMessage?”
optionallastMessage:ChatMessage<unknown>
Defined in: chat/types.ts:172
messageCount
Section titled “messageCount”messageCount:
number
Defined in: chat/types.ts:171
status
Section titled “status”status:
"active"
Defined in: chat/types.ts:170
title?
Section titled “title?”
optionaltitle:string
Defined in: chat/types.ts:169
updatedAt
Section titled “updatedAt”updatedAt:
string
Defined in: chat/types.ts:174
SourcePart
Section titled “SourcePart”Defined in: chat/types.ts:70
Source reference part (URL citation)
Properties
Section titled “Properties”status
Section titled “status”status:
PartStatus
Defined in: chat/types.ts:70
title?
Section titled “title?”
optionaltitle:string
Defined in: chat/types.ts:70
type:
"source"
Defined in: chat/types.ts:70
url:
string
Defined in: chat/types.ts:70
StreamWatchdogConfig
Section titled “StreamWatchdogConfig”Defined in: chat/watchdog.ts:14
Stream watchdog configuration
Properties
Section titled “Properties”signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: chat/watchdog.ts:18
AbortSignal to link with (watchdog aborts when this signal fires)
timeoutMs
Section titled “timeoutMs”timeoutMs:
number
Defined in: chat/watchdog.ts:16
Maximum inactivity time in milliseconds before aborting the stream
TextPart
Section titled “TextPart”Defined in: chat/types.ts:64
Plain text content part
Properties
Section titled “Properties”status
Section titled “status”status:
PartStatus
Defined in: chat/types.ts:64
text:
string
Defined in: chat/types.ts:64
type:
"text"
Defined in: chat/types.ts:64
ToolCallPart
Section titled “ToolCallPart”Defined in: chat/types.ts:68
Tool invocation part with call ID, arguments, optional result
Properties
Section titled “Properties”args:
unknown
Defined in: chat/types.ts:68
error?
Section titled “error?”
optionalerror:string
Defined in: chat/types.ts:68
name:
string
Defined in: chat/types.ts:68
result?
Section titled “result?”
optionalresult:unknown
Defined in: chat/types.ts:68
status
Section titled “status”status:
ToolCallStatus
Defined in: chat/types.ts:68
toolCallId
Section titled “toolCallId”toolCallId:
string
Defined in: chat/types.ts:68
type:
"tool_call"
Defined in: chat/types.ts:68
Type Aliases
Section titled “Type Aliases”ChatEvent
Section titled “ChatEvent”ChatEvent = {
messageId:ChatId;role:ChatRole;type:"message:start"; } | {messageId:ChatId;text:string;type:"message:delta"; } | {message:ChatMessage;messageId:ChatId;type:"message:complete"; } | {args:Record<string,unknown>;messageId:ChatId;toolCallId:string;toolName:string;type:"tool:start"; } | {isError?:boolean;messageId:ChatId;result:unknown;toolCallId:string;toolName:string;type:"tool:complete"; } | {messageId:ChatId;type:"thinking:start"; } | {messageId:ChatId;text:string;type:"thinking:delta"; } | {messageId:ChatId;type:"thinking:end"; } | {messageId:ChatId;toolArgs:Record<string,unknown>;toolName:string;type:"permission:request"; } | {allowed:boolean;messageId:ChatId;toolName:string;type:"permission:response"; } | {completionTokens:number;model?:string;promptTokens:number;type:"usage"; } | {sessionId:ChatId;type:"session:created"; } | {sessionId:ChatId;type:"session:updated"; } | {code?:ErrorCode;error:string;messageId?:ChatId;recoverable:boolean;type:"error"; } | {type:"typing:start"; } | {type:"typing:end"; } | {type:"heartbeat"; } | {finalOutput?:string;finishReason?:string;type:"done"; }
Defined in: chat/types.ts:180
Events emitted during chat operation
ChatEventType
Section titled “ChatEventType”ChatEventType =
ChatEvent["type"]
Defined in: chat/types.ts:235
All possible ChatEvent type strings
ChatId
Section titled “ChatId”ChatId =
string&object
Defined in: chat/types.ts:14
Branded type for unique identifiers
Type Declaration
Section titled “Type Declaration”__brand
Section titled “__brand”
readonly__brand:"ChatId"
ChatIdLike
Section titled “ChatIdLike”ChatIdLike =
string|ChatId
Defined in: chat/types.ts:46
Accepts either a plain string or branded ChatId for API convenience.
Use this in public API signatures so consumers don’t need as ChatId casts.
ChatMessageStatus
Section titled “ChatMessageStatus”ChatMessageStatus =
MessageStatus
Defined in: chat/types.ts:92
Message status
ChatRole
Section titled “ChatRole”ChatRole =
"user"|"assistant"|"system"
Defined in: chat/types.ts:79
Role of message author
IChatProvider
Section titled “IChatProvider”IChatProvider =
IChatBackend
Defined in: chat/types.ts:295
Deprecated
Section titled “Deprecated”IChatProvider has been inlined into IChatBackend. Import IChatBackend from “@witqq/agent-sdk/chat/backends” instead. Kept as type alias for backward compatibility.
MessagePart
Section titled “MessagePart”MessagePart =
TextPart|ReasoningPart|ToolCallPart|SourcePart|FilePart
Defined in: chat/types.ts:74
Union of all message part types
MessageStatus
Section titled “MessageStatus”MessageStatus =
"pending"|"streaming"|"complete"|"error"|"cancelled"
Defined in: chat/types.ts:55
Lifecycle status of an entire message
PartStatus
Section titled “PartStatus”PartStatus =
"pending"|"streaming"|"complete"|"error"
Defined in: chat/types.ts:51
Lifecycle status of a message part (text, reasoning, etc.)
RuntimeStatus
Section titled “RuntimeStatus”RuntimeStatus =
"idle"|"streaming"|"error"|"disposed"
Defined in: chat/types.ts:59
Lifecycle status of the chat runtime
SessionStatus
Section titled “SessionStatus”SessionStatus =
"active"
Defined in: chat/types.ts:57
Lifecycle status of a chat session
ToolCallStatus
Section titled “ToolCallStatus”ToolCallStatus =
"pending"|"running"|"requires_approval"|"complete"|"error"|"denied"
Defined in: chat/types.ts:53
Lifecycle status of a tool call within a message
Functions
Section titled “Functions”adaptAgentEvents()
Section titled “adaptAgentEvents()”adaptAgentEvents(
events,messageId):AsyncIterable<ChatEvent>
Defined in: chat/bridge.ts:85
Convert AgentEvent async iterable to ChatEvent async iterable
Parameters
Section titled “Parameters”events
Section titled “events”AsyncIterable<AgentEvent>
messageId
Section titled “messageId”Returns
Section titled “Returns”AsyncIterable<ChatEvent>
agentEventToChatEvent()
Section titled “agentEventToChatEvent()”agentEventToChatEvent(
event,messageId):ChatEvent|null
Defined in: chat/bridge.ts:11
Map a single AgentEvent to a ChatEvent (or null if no mapping)
Parameters
Section titled “Parameters”messageId
Section titled “messageId”Returns
Section titled “Returns”ChatEvent | null
createChatId()
Section titled “createChatId()”createChatId():
ChatId
Defined in: chat/types.ts:20
Generate a new unique ChatId (crypto.randomUUID-based)
Returns
Section titled “Returns”Branded ChatId string
createTextMessage()
Section titled “createTextMessage()”createTextMessage(
text,role?):ChatMessage
Defined in: chat/types.ts:306
Create a simple text ChatMessage.
Parameters
Section titled “Parameters”string
Message text content
ChatRole = "user"
Message role (default: “user”)
Returns
Section titled “Returns”A complete ChatMessage with a single TextPart
fromAgentMessage()
Section titled “fromAgentMessage()”fromAgentMessage(
message,id?):ChatMessage
Defined in: chat/conversion.ts:58
Convert an agent-sdk Message to ChatMessage
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”getMessageReasoning()
Section titled “getMessageReasoning()”getMessageReasoning(
message):string
Defined in: chat/chat-utils.ts:28
Join all ReasoningPart texts in a message
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”string
getMessageText()
Section titled “getMessageText()”getMessageText(
message):string
Defined in: chat/chat-utils.ts:11
Join all TextPart texts in a message
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”string
getMessageToolCalls()
Section titled “getMessageToolCalls()”getMessageToolCalls(
message):ToolCallPart[]
Defined in: chat/chat-utils.ts:21
Filter all ToolCallParts from a message
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”isChatEvent()
Section titled “isChatEvent()”isChatEvent(
value):value is ChatEvent
Defined in: chat/guards.ts:101
Check if a value is a ChatEvent
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is ChatEvent
isChatMessage()
Section titled “isChatMessage()”isChatMessage(
value):value is ChatMessage<unknown>
Defined in: chat/guards.ts:18
Check if a value is a ChatMessage
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is ChatMessage<unknown>
isChatSession()
Section titled “isChatSession()”isChatSession(
value):value is ChatSession<Record<string, unknown>>
Defined in: chat/guards.ts:32
Check if a value is a ChatSession
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is ChatSession<Record<string, unknown>>
isFilePart()
Section titled “isFilePart()”isFilePart(
value):value is FilePart
Defined in: chat/guards.ts:85
Check if a value is a FilePart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is FilePart
isMessagePart()
Section titled “isMessagePart()”isMessagePart(
value):value is MessagePart
Defined in: chat/guards.ts:47
Check if a value is a MessagePart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is MessagePart
isObservableSession()
Section titled “isObservableSession()”isObservableSession<
TCustom>(session):session is ObservableSession<TCustom>
Defined in: chat/types.ts:317
Type guard: checks if a session has reactive API (subscribe/getSnapshot)
Type Parameters
Section titled “Type Parameters”TCustom
Section titled “TCustom”TCustom extends Record<string, unknown> = Record<string, unknown>
Parameters
Section titled “Parameters”session
Section titled “session”ChatSession<TCustom>
Returns
Section titled “Returns”session is ObservableSession<TCustom>
isReasoningPart()
Section titled “isReasoningPart()”isReasoningPart(
value):value is ReasoningPart
Defined in: chat/guards.ts:71
Check if a value is a ReasoningPart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is ReasoningPart
isResumableBackend()
Section titled “isResumableBackend()”isResumableBackend(
adapter):adapter is IResumableBackend
Defined in: chat/backends/types.ts:101
Type guard: checks if a backend adapter supports session resume
Parameters
Section titled “Parameters”adapter
Section titled “adapter”Returns
Section titled “Returns”adapter is IResumableBackend
isSourcePart()
Section titled “isSourcePart()”isSourcePart(
value):value is SourcePart
Defined in: chat/guards.ts:78
Check if a value is a SourcePart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is SourcePart
isTextPart()
Section titled “isTextPart()”isTextPart(
value):value is TextPart
Defined in: chat/guards.ts:57
Check if a value is a TextPart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is TextPart
isToolCallPart()
Section titled “isToolCallPart()”isToolCallPart(
value):value is ToolCallPart
Defined in: chat/guards.ts:64
Check if a value is a ToolCallPart
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is ToolCallPart
streamToTransport()
Section titled “streamToTransport()”streamToTransport(
events,transport):Promise<void>
Defined in: chat/backends/transport.ts:146
Pipes an async iterable of ChatEvents into a transport. Handles errors and ensures transport is closed on completion.
Parameters
Section titled “Parameters”events
Section titled “events”AsyncIterable<ChatEvent>
Async iterable of ChatEvent (from adapter.streamMessage)
transport
Section titled “transport”Transport to send events through
Returns
Section titled “Returns”Promise<void>
toAgentMessage()
Section titled “toAgentMessage()”toAgentMessage(
message):Message
Defined in: chat/conversion.ts:14
Convert a ChatMessage to agent-sdk Message format.
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”Deprecated
Section titled “Deprecated”Use toAgentMessages() which correctly handles tool results. This function drops tool results for assistant messages with completed tool calls.
toAgentMessages()
Section titled “toAgentMessages()”toAgentMessages(
message):Message[]
Defined in: chat/conversion.ts:25
Convert a ChatMessage to one or more agent-sdk Messages. For assistant messages with completed tool calls, emits both:
- {role: “assistant”, toolCalls: […]} — the tool invocation
- {role: “tool”, toolResults: […]} — the tool results This preserves tool results when replaying conversation history to backends.
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”Message[]
toChatId()
Section titled “toChatId()”toChatId(
value):ChatId
Defined in: chat/types.ts:35
Cast a string to ChatId with UUID format validation.
Use this instead of manual as ChatId type assertions.
Parameters
Section titled “Parameters”string
String to validate and cast
Returns
Section titled “Returns”Branded ChatId
Throws
Section titled “Throws”If value is not a valid UUID v4 format
withStreamWatchdog()
Section titled “withStreamWatchdog()”withStreamWatchdog<
T>(source,config):AsyncGenerator<T>
Defined in: chat/watchdog.ts:43
Wraps an async iterable with an activity timeout.
If no event arrives within timeoutMs, the stream is aborted with a ChatError.
The timer resets after each received event.
Uses Promise.race() so even if the source iterator is stuck on an unresolvable promise, the timeout fires and aborts iteration.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”source
Section titled “source”AsyncIterable<T>
config
Section titled “config”Returns
Section titled “Returns”AsyncGenerator<T>
Example
Section titled “Example”const watched = withStreamWatchdog(adapter.streamMessage(session, msg), { timeoutMs: 30000, signal: abortController.signal,});
for await (const event of watched) { // Each event resets the 30s inactivity timer}References
Section titled “References”BackendAdapterFactory
Section titled “BackendAdapterFactory”Re-exports BackendAdapterFactory
BackendInfo
Section titled “BackendInfo”Re-exports BackendInfo
ChatError
Section titled “ChatError”Re-exports ChatError
ChatEventBus
Section titled “ChatEventBus”Re-exports ChatEventBus
ChatRuntimeOptions
Section titled “ChatRuntimeOptions”Re-exports ChatRuntimeOptions
classifyError
Section titled “classifyError”Re-exports classifyError
ContextStats
Section titled “ContextStats”Re-exports ContextStats
ContextWindowConfig
Section titled “ContextWindowConfig”Re-exports ContextWindowConfig
ContextWindowManager
Section titled “ContextWindowManager”Re-exports ContextWindowManager
ContextWindowResult
Section titled “ContextWindowResult”Re-exports ContextWindowResult
createChatRuntime
Section titled “createChatRuntime”Re-exports createChatRuntime
CreateSessionOptions
Section titled “CreateSessionOptions”Re-exports CreateSessionOptions
ErrorCode
Section titled “ErrorCode”Re-exports ErrorCode
estimateTokens
Section titled “estimateTokens”Re-exports estimateTokens
ExponentialBackoffStrategy
Section titled “ExponentialBackoffStrategy”Re-exports ExponentialBackoffStrategy
FileSessionStore
Section titled “FileSessionStore”Re-exports FileSessionStore
IChatClient
Section titled “IChatClient”Re-exports IChatClient
IChatRuntime
Section titled “IChatRuntime”Re-exports IChatRuntime
IChatSessionStore
Section titled “IChatSessionStore”Re-exports IChatSessionStore
InMemorySessionStore
Section titled “InMemorySessionStore”Re-exports InMemorySessionStore
IProviderClient
Section titled “IProviderClient”Re-exports IProviderClient
ISessionReader
Section titled “ISessionReader”Re-exports ISessionReader
ISessionWriter
Section titled “ISessionWriter”Re-exports ISessionWriter
isRetryable
Section titled “isRetryable”Re-exports isRetryable
MessageAccumulator
Section titled “MessageAccumulator”Re-exports MessageAccumulator
OverflowStrategy
Section titled “OverflowStrategy”Re-exports OverflowStrategy
PaginatedMessages
Section titled “PaginatedMessages”Re-exports PaginatedMessages
RetryConfig
Section titled “RetryConfig”Re-exports RetryConfig
SelectionChangeCallback
Section titled “SelectionChangeCallback”Re-exports SelectionChangeCallback
StreamRetryConfig
Section titled “StreamRetryConfig”Re-exports StreamRetryConfig
TypedEventEmitter
Section titled “TypedEventEmitter”Re-exports TypedEventEmitter
withRetry
Section titled “withRetry”Re-exports withRetry