AgentRef
A typed handle that threads a state shape through Angular DI from
provideAgent(ref, …) to injectAgent(ref) without per-call-site
restatement of the generic.
import type { AgentRef } from '@threadplane/chat';Declaration
export interface AgentRef<TState> {
readonly token: InjectionToken<Agent<TState>>;
}Type parameters
TState
Members
token
readonly token: InjectionToken<Agent<TState>>;