Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0fc7725
docs(chat): design spec for the TypeScript DX pass
blove Jun 18, 2026
10b1bc6
docs(chat): strengthen DX-pass validation — examples as forcing funct…
blove Jun 18, 2026
1535425
docs(chat): TDD implementation plan for the TypeScript DX pass
blove Jun 18, 2026
f180eeb
test(chat): strict type-test harness (Equal/Expect + tsconfig + nx ta…
blove Jun 18, 2026
cc0301a
feat(chat): variance-safe ClientToolDef (FunctionToolDef<S,R> + bivar…
blove Jun 18, 2026
bd639e4
feat(chat): generic tools()/action() — strict-safe registry with per-…
blove Jun 18, 2026
4d918c8
feat(chat): ComponentInputs/AcceptComponent type machinery for view/a…
blove Jun 18, 2026
f4abf18
feat(chat): generic view()/ask() — strict-but-flexible schema<->compo…
blove Jun 18, 2026
62f1939
feat(chat): genericize Agent<TState> + AgentWithHistory<TState> (defa…
blove Jun 18, 2026
e76134c
feat(chat): createAgentRef typed DI handle (AgentRef<TState>) + publi…
blove Jun 18, 2026
b5ad6ad
feat(langgraph): provideAgent/injectAgent AgentRef overloads — typed …
blove Jun 18, 2026
df123c7
feat(ag-ui): genericize AgUiAgent<T> + provideAgent/injectAgent Agent…
blove Jun 18, 2026
5813413
feat(chat): Prettify hovers + re-export StandardSchema*/ToolArgs/View…
blove Jun 18, 2026
02821d3
docs(chat,render): @param/@returns/@example JSDoc on hero exports
blove Jun 18, 2026
45b27c2
docs(langgraph): migrate guides to createAgentRef/injectAgent(ref) — …
blove Jun 18, 2026
129c357
docs(langgraph): fix BagTemplate example — createAgentRef takes one g…
blove Jun 18, 2026
2a44a0c
test(cockpit/ag-ui): client-tools app on strict + typed tools/view/as…
blove Jun 18, 2026
a496b95
test(cockpit/langgraph): client-tools app on strict + typed tools/vie…
blove Jun 18, 2026
35db42f
test(examples/ag-ui): canonical itinerary on strict + typed client-to…
blove Jun 18, 2026
73f5c18
test(examples,cockpit): representative createAgentRef typed-state mig…
blove Jun 18, 2026
32e047f
Merge remote-tracking branch 'origin/main' into claude/typescript-dx-…
blove Jun 18, 2026
0a75875
docs(langgraph),chat: fix inject-agent.mdx examples (add required ass…
blove Jun 18, 2026
2b6b26e
Merge remote-tracking branch 'origin/main' into claude/typescript-dx-…
blove Jun 18, 2026
592419d
docs(api): regenerate api-docs for new chat exports (createAgentRef/A…
blove Jun 18, 2026
17f1abd
Merge remote-tracking branch 'origin/main' into claude/typescript-dx-…
blove Jun 18, 2026
4957f3e
test(examples/ag-ui): match new classified-error copy in error-handli…
blove Jun 18, 2026
0b05a43
Merge remote-tracking branch 'origin/main' into claude/typescript-dx-…
blove Jun 19, 2026
89f1be9
Merge branch 'main' into claude/typescript-dx-pass
blove Jun 19, 2026
8ecd04c
Merge branch 'main' into claude/typescript-dx-pass
blove Jun 19, 2026
fa8e657
Merge branch 'main' into claude/typescript-dx-pass
blove Jun 19, 2026
c37f011
Merge branch 'main' into claude/typescript-dx-pass
blove Jun 19, 2026
fb1fc15
chore: retrigger Vercel preview deployment
blove Jun 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions apps/website/content/docs/ag-ui/api/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
},
{
"name": "state",
"type": "Signal<Record<string, unknown>>",
"type": "Signal<TState>",
"description": "",
"optional": false
},
Expand Down Expand Up @@ -562,21 +562,27 @@
{
"name": "injectAgent",
"kind": "function",
"description": "Injects the AG-UI agent from Angular's dependency injection container.\nUse this in components or services provided via `provideAgent()` (or\n`provideFakeAgent()`).\n\nReturns an `AgUiAgent` — the runtime-neutral `Agent` contract plus the\nAG-UI-specific `customEvents` signal — so `customEvents` is reachable\ndirectly, without casting.",
"signature": "injectAgent(): AgUiAgent",
"description": "Injects the AG-UI agent from Angular's dependency injection container.\nUse this in components or services provided via `provideAgent()` (or\n`provideFakeAgent()`).\n\nReturns an `AgUiAgent` — the runtime-neutral `Agent` contract plus the\nAG-UI-specific `customEvents` signal — so `customEvents` is reachable\ndirectly, without casting.\n\n**Typed state via AgentRef.** Pass the same ref that was supplied to\n`provideAgent(ref, …)` to carry the state type through DI without repeating\nthe generic at every call site:\n\n```ts\nconst agent = injectAgent(TRIP); // AgUiAgent<TripState>\n```\n\nThe no-arg form defaults to `AgUiAgent<Record<string, unknown>>`.",
"signature": "injectAgent(): AgUiAgent<>",
"params": [],
"returns": {
"type": "AgUiAgent",
"type": "AgUiAgent<>",
"description": ""
},
"examples": []
},
{
"name": "provideAgent",
"kind": "function",
"description": "Provides an Agent instance wired through HttpAgent and toAgent.\nConstructs an HttpAgent from config and wraps it in the runtime-neutral\nAgent contract via toAgent(). Returns a provider array suitable for\nbootstrapApplication or TestBed.configureTestingModule().\n\n**Static vs factory config.** Pass a plain `AgentConfig` object when the\nconfig is known up front. Pass a `() => AgentConfig` factory when the config\ndepends on runtime/DI state — the factory runs inside an Angular injection\ncontext, so it may call `inject()` to read services or route params.",
"signature": "provideAgent(configOrFactory: AgentConfig | () => AgentConfig): Provider[]",
"description": "Provides an Agent instance wired through HttpAgent and toAgent.\nConstructs an HttpAgent from config and wraps it in the runtime-neutral\nAgent contract via toAgent(). Returns a provider array suitable for\nbootstrapApplication or TestBed.configureTestingModule().\n\n**Static vs factory config.** Pass a plain `AgentConfig` object when the\nconfig is known up front. Pass a `() => AgentConfig` factory when the config\ndepends on runtime/DI state — the factory runs inside an Angular injection\ncontext, so it may call `inject()` to read services or route params.\n\n**Typed state via AgentRef.** Pass a typed ref as the first argument to flow\nthe state shape from `provideAgent` to `injectAgent` without repeating the\ngeneric at every call site:\n\n```ts\ninterface TripState { day: number; places: string[]; }\nexport const TRIP = createAgentRef<TripState>('trip');\n// app.config.ts:\nproviders: [provideAgent(TRIP, { url: 'http://localhost:8000/agent' })]\n// component:\nconst agent = injectAgent(TRIP); // AgUiAgent<TripState>\n```",
"signature": "provideAgent(ref: AgentRef<T>, configOrFactory: AgentConfig | () => AgentConfig): Provider[]",
"params": [
{
"name": "ref",
"type": "AgentRef<T>",
"description": "",
"optional": false
},
{
"name": "configOrFactory",
"type": "AgentConfig | () => AgentConfig",
Expand Down Expand Up @@ -613,7 +619,7 @@
"name": "toAgent",
"kind": "function",
"description": "Wraps an AG-UI AbstractAgent into the runtime-neutral Agent contract.\n\nThe adapter subscribes to source.subscribe({ onEvent }) and reduces every\nevent into the produced Agent's signals. submit() optimistically appends the\nuser message to both our signals and the source agent's internal message\nlist, then calls source.runAgent(). stop() calls source.abortRun().\n\nSubscription cleanup: the returned Agent does NOT manage its own lifetime.\nCallers using DI should rely on the provider's destroy hook; direct callers\nof toAgent() should treat the returned object's lifecycle as tied to the\nagent instance they constructed. The subscriber registered via\nsource.subscribe() will fire for the lifetime of source.",
"signature": "toAgent(source: AbstractAgent<>, options: ToAgentOptions): AgUiAgent",
"signature": "toAgent(source: AbstractAgent<>, options: ToAgentOptions): AgUiAgent<>",
"params": [
{
"name": "source",
Expand All @@ -629,7 +635,7 @@
}
],
"returns": {
"type": "AgUiAgent",
"type": "AgUiAgent<>",
"description": ""
},
"examples": []
Expand Down
Loading
Loading