Documentation
¶
Overview ¶
Package ui provides the AI SDK UI layer — a Go re-interpretation of the AI SDK UI libraries (React, Svelte, Vue, Angular) using server-side Templ components and Datastar for streaming reactivity.
The UI layer is the outermost layer in the onion model. It depends on domain interfaces (pkg/chat) and services (pkg/core) but no provider implementations.
Sub-packages:
- chat: Chat state management equivalent to the JS useChat() hook
- components: Templ component files (.templ) for rendering chat UIs
- handlers: HTTP handler implementations for chat endpoints
Directories
¶
| Path | Synopsis |
|---|---|
|
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook.
|
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook. |
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
|
Package handlers provides HTTP handler implementations for AI SDK UI endpoints.
|
Package handlers provides HTTP handler implementations for AI SDK UI endpoints. |
Click to show internal directories.
Click to hide internal directories.