AgentRef
A typed handle that carries a session type through Angular dependency
injection, from provideAgent(ref, …) to injectAgent(ref), so no call
site restates it.
import type { AgentRef } from '@threadplane/angular';Declaration
export interface AgentRef<TSession extends AgentSessionLike = AgentSession> {
readonly token: InjectionToken<Agent<TSession>>;
}Type parameters
TSessionAgentSessionLikeDefault:AgentSession
Members
token
readonly token: InjectionToken<Agent<TSession>>;