@agentskit/angular
v0.2.2
Published
Angular service + components for AgentsKit.
Maintainers
Readme
@agentskit/angular
Angular 18+ service (Signal + RxJS) + headless chat components. Same ChatReturn contract every AgentsKit framework binding ships.
Tags: ai · agents · llm · agentskit · angular · signals · rxjs · chat · streaming
Why
- One contract, every framework —
AgentskitChatservice surfaces the exact same shape as the React / Vue / Svelte / Solid / RN / Ink bindings. - Angular-native reactivity — state exposed as
Signal; events as RxJSObservable. - Headless by default — components emit
data-ak-*attributes; style with your design system. - Streaming, tools, HITL — all core features work identically to
@agentskit/react.
Install
npm install @agentskit/angular @agentskit/adaptersPeers: @angular/core ^18 || ^19 || ^20, rxjs ^7.
Quick example
import { Component, inject } from '@angular/core'
import { AgentskitChat, ChatContainerComponent, MessageComponent, InputBarComponent } from '@agentskit/angular'
import { anthropic } from '@agentskit/adapters'
@Component({
standalone: true,
imports: [ChatContainerComponent, MessageComponent, InputBarComponent],
template: `
<ak-chat-container>
@for (m of chat.messages(); track m.id) {
<ak-message [message]="m" />
}
<ak-input-bar [chat]="chat" />
</ak-chat-container>
`,
})
export class ChatWidget {
chat = inject(AgentskitChat).configure({
adapter: anthropic({ apiKey: process.env.NG_APP_ANTHROPIC_API_KEY!, model: 'claude-sonnet-4-6' }),
})
}API
AgentskitChatservice — DI-friendly;configure(config)returnsChatReturnwithSignalstate + RxJS events.- Headless components:
<ak-chat-container>,<ak-message>,<ak-input-bar>,<ak-tool-call-view>,<ak-tool-confirmation>,<ak-thinking-indicator>.
Ecosystem
| Package | Role |
|---------|------|
| @agentskit/core | ChatReturn contract |
| @agentskit/adapters | LLM providers |
| @agentskit/tools | Built-in + integration tools |
| @agentskit/memory | Chat + vector backends |
| @agentskit/react · vue · svelte · solid · react-native · ink | Same contract, different host |
Contributors
License
MIT — see LICENSE.
