provideFakeAgent
Wire an in-process fake LangGraph agent into Angular DI.
Streams a canned assistant reply (see FakeAgentConfig) with no backend —
the symmetric counterpart to @threadplane/ag-ui's provideFakeAgent(). For
advanced manual scripting (tool calls, interrupts, multi-batch), provide
the agent yourself with
provideAgent({ assistantId, transport: new MockAgentTransport(...) }).
import { provideFakeAgent } from '@threadplane/langgraph';Declaration · overload 1
export declare function provideFakeAgent(config?: FakeAgentConfig): Provider[];Parameters
config· optionalFakeAgentConfig
Returns
Provider[]Examples
TestBed.configureTestingModule({
providers: [provideFakeAgent({ tokens: ['Hi from the fake LangGraph agent'] })],
});