# veryfront/chat

## Import

```ts
import { AgentCard, agentsToPickerOptions, Chat, Message, useAgent, useChat } from "veryfront/chat";
```

## Examples

### Basic chat (preset)

```tsx
import { Chat, useChat } from "veryfront/chat";

export default function Page() {
  const chat = useChat();
  return <Chat chat={chat} />;
}
```

### Custom layout (composition)

```tsx
import { Chat, useChat } from "veryfront/chat";

export default function Page() {
  const chat = useChat();
  return (
    <Chat.Root messages={chat.messages} input={chat.input}>
      <Chat.If condition={(ctx) => ctx.isEmpty}>
        <Chat.Empty title="Ask me anything" />
      </Chat.If>
      <Chat.MessageList messages={chat.messages} />
      <Chat.Input
        input={chat.input}
        onChange={chat.handleInputChange}
        onSubmit={chat.handleSubmit}
      />
    </Chat.Root>
  );
}
```

### Per-message control (compound)

```tsx
import { Message } from "veryfront/chat";

<Message.Root message={msg}>
  <Message.Avatar />
  <Message.Content />
  <Message.Actions />
</Message.Root>;
```

## Type Reference

### `UseChatOptions`

Options accepted by use chat.

| Property           | Type                                                        | Description                                                                              | Source                                                                                            |
| ------------------ | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `api?`             | `string`                                                    | AG-UI endpoint. Defaults to "/api/ag-ui".                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `transport?`       | `"ag-ui"`                                                   | Streaming response protocol used by the endpoint. AG-UI is the default.                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `initialMessages?` | `ChatMessage[]`                                             | Pre-populated messages                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `body?`            | <code>Record\<string, unknown></code>                       | Extra body fields sent with each request                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `headers?`         | <code>Record\<string, string></code>                        | Custom request headers                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `credentials?`     | `RequestCredentials`                                        | Fetch credentials mode                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `model?`           | `string`                                                    | Override model at runtime (e.g. "openai/gpt-4o", "Anthropic/claude-sonnet-4-5-20250929") | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `onResponse?`      | <code>(response: Response) => void</code>                   | Raw response callback                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `onFinish?`        | <code>(message: ChatMessage) => void</code>                 | Completion callback                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `onError?`         | <code>(error: UseChatError) => void</code>                  | Error callback                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `onToolCall?`      | <code>(arg: OnToolCallArg) => void \| Promise\<void></code> | Tool call handler for client-side execution                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |

### `UseChatResult`

`useChat` result

| Property             | Type                                                                                                | Description                                                                                | Source                                                                                            |
| -------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| `messages`           | `ChatMessage[]`                                                                                     | All messages in the conversation                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `input`              | `string`                                                                                            | Current input value                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `isLoading`          | `boolean`                                                                                           | Whether a request is in flight                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `status`             | `ChatStatus`                                                                                        | Streaming lifecycle of the current turn (AI-SDK parity).                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `streamingMessageId` | `string \| null`                                                                                    | Id of the assistant message currently streaming, or `null` when idle.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `error`              | `UseChatError \| null`                                                                              | Last error (if any)                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `model`              | `string \| undefined`                                                                               | Current model override (undefined = use agent default)                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `activeModel`        | `string \| undefined`                                                                               | The actual model being used after auto-upgrade (e.g. "Anthropic/claude-sonnet-4-20250514") | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `inferenceMode`      | `InferenceMode`                                                                                     | Where inference is currently happening                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `setInput`           | <code>(input: string) => void</code>                                                                | Set input value                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `setModel`           | <code>(model: string \| undefined) => void</code>                                                   | Change the model for subsequent requests                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `sendMessage`        | <code>(message: { text: string; files?: ChatFilePart\[]; model?: string }) => Promise\<void></code> | Send a message. A message model overrides the session model for this request only.         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `editMessage`        | <code>(messageId: string, newText: string) => Promise\<void></code>                                 | Edit a user message and resubmit - truncates history to that point                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `getBranches`        | <code>(messageId: string) => BranchInfo</code>                                                      | Get branch info for a message (returns { current, total }; total=1 if no branches)         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `switchBranch`       | <code>(messageId: string, branchIndex: number) => void</code>                                       | Switch to a different branch at a given message                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `reload`             | <code>() => Promise\<void></code>                                                                   | Re-send last user message                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `stop`               | <code>() => void</code>                                                                             | Abort current request                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `setMessages`        | <code>(messages: ChatMessage\[]) => void</code>                                                     | Replace message history                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `addToolOutput`      | <code>(output: ToolOutput) => void</code>                                                           | Submit client-side tool result                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `data?`              | `unknown`                                                                                           | Extra data from server response                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `handleInputChange`  | <code>(e: React.ChangeEvent\<HTMLInputElement \| HTMLTextAreaElement>) => void</code>               | Bind to input onChange                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |
| `handleSubmit`       | <code>(e?: React.FormEvent) => Promise\<void></code>                                                | Submit current input                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts) |

### `UseAgentOptions`

Options accepted by use agent.

| Property        | Type                                                       | Description                        | Source                                                                                       |
| --------------- | ---------------------------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------- |
| `agent`         | `string`                                                   | Agent ID or endpoint               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `onToolCall?`   | <code>(toolCall: ToolCall) => void</code>                  | Callback when tool is called       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `onToolResult?` | <code>(toolCall: ToolCall, result: unknown) => void</code> | Callback when tool result received | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `onError?`      | <code>(error: Error) => void</code>                        | Callback when error occurs         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |

### `UseAgentResult`

Result returned from use agent.

| Property    | Type                                           | Description             | Source                                                                                       |
| ----------- | ---------------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------- |
| `messages`  | `AgentMessage[]`                               | Message history         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `toolCalls` | `ToolCall[]`                                   | Active tool calls       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `status`    | `AgentStatus`                                  | Agent status            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `thinking?` | `string`                                       | Thinking/reasoning text | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `invoke`    | <code>(input: string) => Promise\<void></code> | Invoke the agent        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `stop`      | <code>() => void</code>                        | Stop agent execution    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `isLoading` | `boolean`                                      | Loading state           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |
| `error`     | `Error \| null`                                | Error state             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts) |

## Exports

### Components

| Name                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Source                                                                                                                               |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| `AgentAvatar`                                 | Render agent avatar, falling back to model identity when agent identity is absent.                                                                                                                                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/agent-avatar.tsx)          |
| `AgentCard`                                   | AgentCard - render `<AgentCard {...props} />` for the default card, or compose `AgentCard.Header` / `Reasoning` / `Tools` / `Body` for a custom layout. Mirrors the `ToolCall` compound: render it, or compose it.                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-card.tsx)                             |
| `AgentPicker`                                 | AgentPicker - render `<AgentPicker agents={...} .../>` for the default data-driven combobox, or compose `AgentPicker.Trigger`, `Content`, `Search`, `List`, `Item`, `Create`, and `Manage` for a custom menu.                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.tsx)                           |
| `AppShell`                                    | Compound AppShell. Compose:                                                                                                                                                                                                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                |
| `AttachmentPill`                              | AttachmentPill - render `<AttachmentPill attachment={…} />` for the default chip, or compose `AttachmentPill.Root` + `.Thumbnail` / `.Icon` / `.Label` / `.Retry` / `.Remove` for a custom layout.                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachment-pill.tsx)        |
| `AttachmentsPanel`                            | AttachmentsPanel - render `<AttachmentsPanel uploads={…} />` for the default panel, or compose `AttachmentsPanel.Root` + `List` / `Item` / `Empty` / `Action` for a custom layout. Mirrors the `ToolCall` / `Sources` compounds: render it, or compose it.                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)      |
| `BranchPicker`                                | Branch picker with addressable previous, count, and next leaves.                                                                                                                                                                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/branch-picker.tsx)          |
| `Chat`                                        | Render chat components through the preset or its composable sub-parts.                                                                                                                                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/chat-preset.tsx)                       |
| `ChatActions`                                 | ChatActions - render `<ChatActions onAttachFiles={…} actions={…} />` for the default preset menu, or compose `ChatActions.Trigger` / `Content` / `Item` (each reads `useChatActions()`) for a custom menu. Mirrors the `ToolCall` compound: render it, or compose it.                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.tsx)                           |
| `ChatAgentPicker`                             | Render the connected agent switcher, or nothing when there's nothing to switch.                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-agent-picker.tsx)                      |
| `ChatContextProvider`                         | Render chat context provider.                                                                                                                                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/chat-context.tsx)             |
| `ChatEmpty`                                   | Render the chat empty state. It renders whatever it is given and never hides itself: in a custom layout, gate it on the thread being empty with `<Chat.If condition={(ctx) => ctx.isEmpty}>`. The `<Chat>` preset does this for you.                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty.tsx)            |
| `ChatEmptyState`                              | Compound empty state. Use the namespaced parts to compose the view: `Root`, `Avatar`, `Heading`, `Suggestions`, `Suggestion`.                                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)      |
| `ChatIf`                                      | Render chat if.                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-if.tsx)               |
| `ChatInput`                                   | ChatInput - render `<ChatInput … />` for the default composer, or compose `ChatInput.Field` + `ChatInput.Send`/`Stop`/`Voice`/`Model`/`Attach`/`Export`.                                                                                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputAttach`                             | Attachment `+` control. When attaching files is the only action, `+` opens the file dialog directly. When `onSelectAttachment` is also set it becomes a portalled `+` menu (Studio `PromptForm`'s `PlusMenu`) with "Add photos & files" and "Select document".                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-input-attach.tsx)     |
| `ChatInputContextProvider`                    | Provider for `<ChatInput>` context.                                                                                                                                                                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/composer-context.tsx)         |
| `ChatInputExport`                             | Download the supplied conversation as Markdown.                                                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputField`                              | The multiline text editor.                                                                                                                                                                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputModel`                              | Model selector - shows when models are configured.                                                                                                                                                                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputRoot`                               | `ChatInput.Root` - the provider shell for a fully custom composer. Supplies `ChatInputContext` from props and renders your children, so you arrange `ChatInput.Field` + the toolbar sub-parts yourself (like `Message.Root`). The default `<ChatInput>` is exactly this Root plus the standard body. Omitted props fall back to the surrounding `ChatContext` (`<Chat.Root chat={…}>`), so a propless Root wires itself to the shared session; explicit props win. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputSend`                               | Send button, shown while the composer is idle.                                                                                                                                                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-input-actions.tsx)    |
| `ChatInputStop`                               | Stop button, shown while the composer is streaming.                                                                                                                                                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-input-actions.tsx)    |
| `ChatInputSubmit`                             | Switch between send and stop states with one control.                                                                                                                                                                                                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-input-submit.tsx)     |
| `ChatInputToolbar`                            | `ChatInput.Toolbar` - a semantic layout slot for the composer's action row. Group/reorder the action sub-parts (`ChatInput.Attach`/`.Model`/`.Export`/ `.Voice`/`.Send`) inside it without re-implementing the composer. Pure layout: the children read their own `ChatInputContext`, so `<ChatInput.Toolbar>` just mirrors the default action-row wrapper classes.                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.tsx)         |
| `ChatInputVoice`                              | Voice button, shown when the idle composer is empty.                                                                                                                                                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-input-actions.tsx)    |
| `ChatMessageList`                             | Render the default message list or compose its centered `Content` column.                                                                                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-message-list.tsx)     |
| `ChatMessagesSkeleton`                        | Render the loading skeleton for a chat thread.                                                                                                                                                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/chat-messages-skeleton.tsx) |
| `ChatRoot`                                    | Render chat root.                                                                                                                                                                                                                                                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-root.tsx)             |
| `ChatSidebar`                                 | Render a chat sidebar - usable as `<ChatSidebar />` or `<ChatSidebar.Root>…`.                                                                                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.tsx)                |
| `ChatThemeScope`                              | Wrap chat primitives in the `[data-vf-ui]` token scope so they're themed.                                                                                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-theme-scope.tsx)                       |
| `CodeBlock`                                   | Render escaped source or delegate to explicit syntax/diagram capabilities.                                                                                                                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                               |
| `CodeSurface`                                 | Render through an explicit extension capability or escaped plain source.                                                                                                                                                                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                               |
| `CONVERSATION_STORAGE_LIMITS`                 | Explicit resource limits applied on both the read and write paths.                                                                                                                                                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-codec.ts)     |
| `ConversationEmptyState`                      | State for conversation empty.                                                                                                                                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)            |
| `ConversationsContextProvider`                | Low-level context provider (value supplied by the caller).                                                                                                                                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx)    |
| `ConversationScrollButton`                    | Render conversation scroll button.                                                                                                                                                                                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)            |
| `ConversationsProvider`                       | ConversationsProvider - calls `useConversations` once with your `store` / `id` / `onSelect` and shares it via `ConversationsContext`. Declare persistence + router wiring here, once, at the app layout; children read it with `useConversationsContext`.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx)    |
| `CopyButton`                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                               |
| `DEFAULT_CHAT_STREAM_IDLE_TIMEOUT_MS`         | Default value for chat stream idle timeout ms.                                                                                                                                                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)             |
| `DEFAULT_CHAT_STREAM_TOOL_RUNNING_TIMEOUT_MS` | Default value for chat stream tool running timeout ms.                                                                                                                                                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)             |
| `DropZoneOverlay`                             | Drag overlay shown over the composer while files are dragged onto it - the glyph-in-a-circle + "Drop files" from Studio's `PromptForm`. Rendered inside a `relative` card; fills it and blurs the content behind.                                                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/drop-zone.tsx)              |
| `ErrorBanner`                                 | Render error banner. Mirrors Studio's inline chat retry banner: an amber `warning` alert with a leading triangle icon and a small filled "Try again" button (not a low-emphasis error pill).                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/error-banner.tsx)          |
| `FadeIn`                                      | Render fade in.                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/animations.tsx)             |
| `InferenceBadge`                              | Render inference badge.                                                                                                                                                                                                                                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inference-badge.tsx)        |
| `InlineCitation`                              | Render the default citation or compose its `Trigger` and `Card` parts.                                                                                                                                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inline-citation.tsx)        |
| `Loader`                                      | Render loader.                                                                                                                                                                                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/animations.tsx)             |
| `Markdown`                                    | Present Markdown source using an injected rich renderer or the explicit dependency-free plain-source contract.                                                                                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/markdown.tsx)                               |
| `Message`                                     | Message - render `<Message message={msg} />` for the default turn, or compose `Message.Root` + `Message.Header`/`Content`/`Actions`/… for a custom layout.                                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/message.tsx)               |
| `MessageActionBar`                            | Context-free message actions with addressable `Copy`, `Copied`, `Regenerate`, and `Edit` icon leaves.                                                                                                                                                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-actions.tsx)        |
| `MessageContextProvider`                      | Render message context provider.                                                                                                                                                                                                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)          |
| `MessageEditForm`                             | Render message edit form.                                                                                                                                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-edit-form.tsx)      |
| `MessageFeedback`                             | Message feedback with addressable positive and negative action leaves.                                                                                                                                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-feedback.tsx)       |
| `ModelAvatar`                                 | Render model avatar.                                                                                                                                                                                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/model-avatar.tsx)          |
| `ModelSelector`                               | ModelSelector - render `<ModelSelector models={...} .../>` for the default data-driven combobox, or compose `ModelSelector.Trigger`, `Content`, `Search`, `List`, and `Item` for a custom menu.                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                         |
| `QuickActions`                                | Render quick actions.                                                                                                                                                                                                                                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/quick-actions.tsx)          |
| `Reasoning`                                   | Reasoning - render `<Reasoning text={…} />` for the default disclosure, or compose `Reasoning.Trigger` + `Reasoning.Content` for a custom layout. Mirrors the `Message` / `ToolCall` compounds: render it, or compose it.                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/reasoning.tsx)              |
| `Shimmer`                                     | Render shimmer.                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/animations.tsx)             |
| `SkillBadge`                                  | Render skill badge.                                                                                                                                                                                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/skill-badge.tsx)            |
| `SourcePill`                                  | Render a single source pill with hover preview and score-color behaviour.                                                                                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                |
| `Sources`                                     | Sources - render `<Sources sources={…} />` for the default row, or compose `Sources.Root` + `Sources.List` + `Sources.Pill` for a custom layout. Mirrors the `ToolCall` / `Reasoning` compounds: render it, or compose it.                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                |
| `StepIndicator`                               | StepIndicator - render `<StepIndicator stepIndex={…} isComplete />` for the default divider, or compose `StepIndicator.Root` + `.Rule` / `.Label` for a custom layout. Mirrors the `ToolCall` / `Sources` compounds.                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/step-indicator.tsx)         |
| `Suggestion`                                  | Render suggestion.                                                                                                                                                                                                                                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)            |
| `Suggestions`                                 | Render suggestions.                                                                                                                                                                                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)            |
| `Tabs`                                        | Tablist container - delegates selection to the adapter, owns the size + look.                                                                                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/tabs.tsx)                                     |
| `TabsItem`                                    | Individual tab - renders as a button, or an anchor when `href` is set. The adapter's `tabs.Tab` supplies the `role="tab"` / `aria-selected` / `data-state` mechanics and composes selection onto the caller's `onClick` (caller's runs first, then the tab activates); this skin renders the visual pill and forwards native props/ref.                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/tabs.tsx)                                     |
| `TabSwitcher`                                 | Render tab switcher.                                                                                                                                                                                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tab-switcher.tsx)           |
| `ToolCall`                                    | ToolCall - render `<ToolCall tool={part} />` for the default card. `invoke_agent` calls use a child-agent card by default. Pass children to replace the default, or compose `ToolCall.Trigger` / `Body` / `Input` / `Output` / `Error` for a custom layout. Mirrors the `Message` compound: render it, or compose it.                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)                |
| `ToolStatusBadge`                             | Render tool status badge.                                                                                                                                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)                |

### Functions

| Name                                  | Description                                                                                                                                                                                                                                                                                                          | Source                                                                                                                                  |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `agentsToPickerOptions`               | Narrow browser-safe agent metadata to the picker's row shape. `AgentOption` now shares `AgentMetadata`'s `avatarUrl` field, so `AgentMetadata[]` is also accepted by `<AgentPicker agents>` directly - this helper just drops the fields the rows don't use.                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-agent-picker.tsx)                         |
| `buildChatStreamChunkMessageMetadata` | Builds chat stream chunk message metadata.                                                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `createChatStreamWatchdog`            | Create chat stream watchdog backed by the lifecycle deadline primitive.                                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)                |
| `createChatStreamWatchdogState`       | State for create chat stream watchdog.                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)                |
| `dedupeChatUiMessageChunks`           | Dedupe chat UI message chunks.                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `downloadMarkdown`                    | Download messages as a .md file.                                                                                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/export.ts)                          |
| `exportAsMarkdown`                    | Convert chat messages to a markdown string.                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/export.ts)                          |
| `extractChatMessageMetadata`          | Extract chat message metadata.                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `extractSourcesFromParts`             | Extract sources from native citations and tool result parts. Native source parts map directly, while tool outputs may expose a `documents` array.                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `getAgentPromptSuggestionItems`       | Normalize an agent's prompt suggestions to `{ label, prompt }[]`, ready to render - the chip shows the short `title` while the click sends the full `prompt`. Saves consumers from flat-mapping `agent.suggestions.suggestions` and reconciling the `title`/`prompt` fields themselves.                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                   |
| `getAgentPromptSuggestions`           | Return prompt text suggestions that the current Chat component can render.                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                   |
| `getNextChatStreamWatchdogState`      | State for get next chat stream watchdog.                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)                |
| `getTextContent`                      | Get text content from chat message parts                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `groupPartsInOrder`                   | Group consecutive parts for ordered rendering Returns an array of groups, each containing either consecutive text parts, a tool part, or a reasoning part                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `isHeartbeatOnlyMetadataChunk`        | Check whether a chunk only carries heartbeat metadata.                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)                |
| `isLongRunningToolRunning`            | Compatibility helper. Under strict lifecycle deadlines long-running tool names no longer disable the absolute tool-running deadline; in legacy mode they still do. Also exported for callers that classify tool activity.                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)                |
| `isReasoningPart`                     | Check if a part is a reasoning part                                                                                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `isSkillToolPart`                     | Check if a tool part is a skill-related tool.                                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `isToolPart`                          | Check if a part is a tool part                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                   |
| `localConversationStore`              | localStorage-backed conversation persistence. Pass a `storage` to back it with another Web-Storage-like implementation. Every operation requires the Web Locks API so concurrent browser contexts cannot lose index updates.                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/local-conversation-store.ts)  |
| `mapHostedStreamPartToChatUiChunks`   | Map hosted stream part to chat UI chunks.                                                                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/hosted-ui-chunk-mapping.ts)                                     |
| `memoryConversationStore`             | In-memory conversation persistence. Optionally seed with initial conversations.                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/memory-conversation-store.ts) |
| `mergeProps`                          | Merge one override object onto base props: `on*` handlers compose (override first, internal skipped if `defaultPrevented`), `className` concatenates via `cx` (consumer appended last), everything else is override-wins. Exported for composing several getters onto one element.                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-chat-input.ts)                  |
| `normalizeAgentMetadata`              | Normalize a single browser-safe agent record (the `agent` object inside the `/api/agents/:id` response, or one entry of the `/api/agents` list).                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                   |
| `normalizeAgentMetadataResponse`      | Normalize the wire response from /api/agents/:id.                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                   |
| `normalizeAgentsListResponse`         | Normalize the wire response from `GET /api/agents`.                                                                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agents.ts)                                           |
| `normalizeChatMessageMetadata`        | Normalizes chat message metadata.                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `normalizeChatUiMessageChunk`         | Normalizes chat UI message chunk.                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `normalizeChatUiMessageStream`        | Normalizes chat UI message stream.                                                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                     |
| `useAgent`                            | React hook for agent.                                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts)                                            |
| `useAgentMetadata`                    | React hook for browser-safe source-defined agent metadata.                                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                   |
| `useAgents`                           | React hook that lists the browser-safe agents a project exposes, via `GET /api/agents`. Companion to `useAgentMetadata` (single agent) - use it to drive an agent switcher, e.g. only rendering a picker when `agents.length > 1`.                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agents.ts)                                           |
| `useAttachments`                      | `useAttachments` - the headless state hook for chat attachments: a persistent, cross-conversation registry of uploaded files with the upload / remove / list actions. This is the domain primitive; render any UI on top of it (the `AttachmentsPanel` / `AttachmentPill` components are one skin - bring your own). | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-uploads-registry.ts)            |
| `useChat`                             | The core chat session hook: manages messages, streaming status, input, submit, regenerate, and branch navigation for a conversation. Powers `<Chat>` (L1) and is the L3 headless entry point for building a fully custom chat UI.                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/use-chat.ts)                                    |
| `useChatContextOptional`              | React hook for chat context optional.                                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/chat-context.tsx)                |
| `useChatErrorHandler`                 | Handler for use chat error.                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/error-boundary.tsx)                            |
| `useChatInput`                        | L3 headless composer hook. Must be used within a `<ChatInput>` / `<Chat>`.                                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-chat-input.ts)                  |
| `useChatInputContextOptional`         | Read the enclosing `<ChatInput>` context, or null outside one.                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/composer-context.tsx)            |
| `useChatScroll`                       | Track and maintain bottom-pinned scroll behavior for a chat viewport.                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-stick-to-bottom.ts)             |
| `useClipboard`                        | Copy `text` and expose transient success or failure feedback.                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                                  |
| `useCompletion`                       | useCompletion hook for single text generation                                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-completion.ts)                                       |
| `useConversation`                     | Load one full conversation by id, over a swappable async store.                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation.ts)                |
| `useConversationChat`                 | Bind the active conversation to an isolated chat session and persistence sink.                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation-chat.ts)           |
| `useConversations`                    | List + active + persistence for conversations, over a swappable async store.                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)               |
| `useConversationsContextOptional`     | Read the shared conversations state, or `null` when there is no provider.                                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx)       |
| `useMessageBranches`                  | `useMessageBranches` is a thin hook over the message context's branch state (`getBranches` / `switchBranch` on `useChat`, surfaced as `branch` + `onBranchPrev/Next`). Powers `Message.BranchPicker`; RFC 2980. Must be used within a `<Message>`.                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)             |
| `useMessageContextOptional`           | React hook for message context optional.                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)             |
| `useMessageParts`                     | `useMessageParts` - read the current message's parts as data, so a consumer can render them however they like (the headless access point to parts; `Message.Part` is the leaf and `Message.Content` provides the default rendering). Throws outside a `Message`.                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)             |
| `useStreaming`                        | React hook for streaming.                                                                                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-streaming.ts)                                        |
| `useUpload`                           | Drive file uploads and expose the resulting attachment lifecycle.                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-upload.ts)                      |
| `useVoiceInput`                       | Input payload for use voice.                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-voice-input.ts)                                      |

### Classes

| Name                         | Description                                                                                                                                                                                                                                                       | Source                                                                                                                           |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `ChatErrorBoundary`          | Implement chat error boundary.                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/error-boundary.tsx)                     |
| `ChatStreamIdleTimeoutError` | Error shape for chat stream idle timeout.                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)         |
| `ConversationStoreError`     | Normalized persistence failure. Store implementations should reject rather than resolve when an operation did not complete; the React hooks wrap custom adapter rejections in this error so consumers can branch on `operation` without parsing an error message. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-store.ts) |

### Types

| Name                                       | Description                                                                                                                                                                                                                                          | Source                                                                                                                                 |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `ActiveConversationLoadFailure`            | A failed provider-owned active-record load, attributed to its exact id.                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `AgentAvatarProps`                         | Props accepted by agent avatar.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/agent-avatar.tsx)            |
| `AgentCardContextValue`                    | Per-card state shared with `AgentCard.*` sub-parts.                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-card.tsx)                               |
| `AgentCardProps`                           | Props accepted by agent card.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-card.tsx)                               |
| `AgentMetadata`                            | Browser-safe source-defined agent metadata.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `AgentMetadataPromptSuggestion`            | Source-defined prompt suggestion shown by chat surfaces.                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `AgentMetadataSuggestion`                  | Source-defined agent suggestion.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `AgentMetadataSuggestions`                 | Source-defined suggestion group for an agent.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `AgentMetadataTaskSuggestion`              | Source-defined task suggestion shown by chat surfaces.                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `AgentOption`                              | A selectable agent entry.                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerActionProps`                   | Props shared by `AgentPicker.Create` and `AgentPicker.Manage`.                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker-actions.tsx)                     |
| `AgentPickerContentProps`                  | Props for `AgentPicker.Content`, the popover surface and `Command` shell.                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerContextValue`                  | Shared selection and open state exposed to `AgentPicker.*` sub-parts.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker-context.tsx)                     |
| `AgentPickerItemProps`                     | Props for `AgentPicker.Item`, a single selectable agent row.                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerProps`                         | Props accepted by `<AgentPicker>`.                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerSearchProps`                   | Props for `AgentPicker.Search`, the addressable search input leaf.                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerSection`                       | A labelled group of agents (e.g. "Connected Agents").                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentPickerTriggerProps`                  | Props for `AgentPicker.Trigger`, the pill/input combobox button.                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker.types.ts)                        |
| `AgentTheme`                               | Public API contract for agent theme.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/theme.ts)                                     |
| `AppShellHeaderProps`                      | Props accepted by `AppShellHeader`.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AppShellOpenState`                        | Per-side visibility map.                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AppShellProps`                            | Props accepted by `AppShell`.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AppShellSide`                             | Which edge a sidebar docks to.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AppShellSidebarProps`                     | Props accepted by `AppShellSidebar`.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AppShellTriggerProps`                     | Props accepted by `AppShellTrigger`.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                                  |
| `AttachmentInfo`                           | Public API contract for attachment info.                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachment-pill.tsx)          |
| `AttachmentPillContextValue`               | Derived per-pill view state shared with `AttachmentPill.*` sub-parts.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachment-pill.tsx)          |
| `AttachmentPillProps`                      | Props accepted by attachment pill.                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachment-pill.tsx)          |
| `AttachmentsPanelActionProps`              | Props for `AttachmentsPanel.Action` - the upload/attach button.                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelContextValue`             | Per-panel state shared with `AttachmentsPanel.*` sub-parts.                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelEmptyProps`               | Props for `AttachmentsPanel.Empty` - the no-files state.                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelHeaderProps`              | Props for `AttachmentsPanel.Header` - the title row + close button.                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelItemProps`                | Props accepted by an individual `AttachmentsPanel.Item` (attachment card).                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelListProps`                | Props for `AttachmentsPanel.List` - the scrollable list of file rows.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelLoadingProps`             | Props for `AttachmentsPanel.Loading` - the initial-fetch placeholder.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `AttachmentsPanelProps`                    | Props accepted by `AttachmentsPanel` / `AttachmentsPanel.Root`.                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `BranchInfo`                               | Public API contract for branch info.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `BranchPickerActionProps`                  | Props shared by `BranchPicker.Previous` and `BranchPicker.Next`.                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/branch-picker.tsx)            |
| `BranchPickerCountProps`                   | Props accepted by `BranchPicker.Count`.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/branch-picker.tsx)            |
| `BranchPickerProps`                        | Props accepted by branch picker.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/branch-picker.tsx)            |
| `BuildChatStreamChunkMessageMetadataInput` | Input payload for build chat stream chunk message metadata.                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/chat-ui-message-helpers.ts)                                    |
| `ChatActionItem`                           | A single data-driven action row in the `<ChatActions>` menu.                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsContentProps`                  | Props for `ChatActions.Content`, the dropdown surface.                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsContextValue`                  | Shared state exposed to `ChatActions.*` sub-parts via `useChatActions()`.                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsItemProps`                     | Props for `ChatActions.Item`, a single selectable menu row.                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsProps`                         | Props accepted by `<ChatActions>` / `<ChatActions.Root>`.                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsSettings`                      | The two toggle settings surfaced in the Settings submenu.                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions-settings.tsx)                    |
| `ChatActionsSlottedTriggerProps`           | Literal slotted-element props for `ChatActions.Trigger`.                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatActionsTriggerProps`                  | Backward-compatible props for `ChatActions.Trigger`.                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.types.ts)                        |
| `ChatAgentInfo`                            | Agent identity + agent-driven content for `<Chat>`. Collapses the old `agent` / `models` / suggestion props into one object. In app mode (`agentId`) this is derived from agent metadata automatically; pass it yourself to drive a controlled chat. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/chat-props.ts)                           |
| `ChatAgentPickerProps`                     | Props accepted by `<ChatAgentPicker>`.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-agent-picker.tsx)                        |
| `ChatContextValue`                         | Public API contract for chat context value.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/chat-context.tsx)               |
| `ChatDynamicToolPart`                      | Public API contract for chat dynamic tool part.                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatEmptyProps`                           | Props accepted by chat empty.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty.tsx)              |
| `ChatEmptyStateAvatarProps`                | Props accepted by `<ChatEmptyState.Avatar>`.                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)        |
| `ChatEmptyStateHeadingProps`               | Props accepted by `<ChatEmptyState.Heading>`.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)        |
| `ChatEmptyStateRootProps`                  | Props accepted by `<ChatEmptyState.Root>`.                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)        |
| `ChatEmptyStateSuggestionProps`            | Props accepted by `<ChatEmptyState.Suggestion>`.                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)        |
| `ChatEmptyStateSuggestionsProps`           | Props accepted by `<ChatEmptyState.Suggestions>`.                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-empty-state.tsx)        |
| `ChatErrorBoundaryProps`                   | Props accepted by chat error boundary.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/error-boundary.tsx)                           |
| `ChatFinishReason`                         | Public API contract for chat finish reason.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatIfProps`                              | Props accepted by chat if.                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-if.tsx)                 |
| `ChatInputActionProps`                     | Backward-compatible props shared by every ChatInput action leaf.                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputAttachProps`                     | Props accepted by `<ChatInput.Attach>`.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputContextValue`                    | Public API contract for the chat input context value.                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/composer-context.tsx)           |
| `ChatInputExportProps`                     | Props accepted by `<ChatInput.Export>`.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputFieldProps`                      | Props accepted by `<ChatInput.Field>`.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputModelProps`                      | Props accepted by `<ChatInput.Model>`.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputProps`                           | Props accepted by `ChatInput`.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputRootProps`                       | Props accepted by `<ChatInput.Root>`.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputSendProps`                       | Props accepted by `<ChatInput.Send>`.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputSlottedActionProps`              | Literal slotted action contract with an element-specific ref and event.                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputSlottedSubmitProps`              | Literal slotted props for the unified `ChatInputSubmit` control.                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputStopProps`                       | Props accepted by `<ChatInput.Stop>`.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputSubmitProps`                     | Props for the unified `ChatInputSubmit` control.                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputToolbarProps`                    | Props accepted by `<ChatInput.Toolbar>`.                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatInputVoiceProps`                      | Props accepted by `<ChatInput.Voice>`.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-composer.types.ts)      |
| `ChatMessage`                              | Message shape for chat.                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatMessageListContentProps`              | Props accepted by the centered transcript column.                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-message-list.tsx)       |
| `ChatMessageListProps`                     | Props accepted by chat message list.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-message-list.tsx)       |
| `ChatMessageMetadata`                      | Public API contract for chat message metadata.                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatMessageMetadataUsage`                 | Public API contract for chat message metadata usage.                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatMessagePart`                          | Public API contract for chat message part.                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatMessagesSkeletonProps`                | Props accepted by `<ChatMessagesSkeleton>`.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/chat-messages-skeleton.tsx)   |
| `ChatProps`                                | Props accepted by chat.                                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/chat-props.ts)                           |
| `ChatReasoningPart`                        | Chat message part that carries reasoning text.                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatRootProps`                            | Props accepted by chat root.                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/chat-root.tsx)               |
| `ChatSidebarComponent`                     | Compound type - the preset plus its namespaced sub-components.                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.tsx)                  |
| `ChatSidebarEmptyProps`                    | Props accepted by `ChatSidebarEmpty`.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarGroupProps`                    | Props accepted by `ChatSidebarGroup`.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarItemProps`                     |                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarItemTitleProps`                | Props for `ChatSidebarItemTitle`.                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarListProps`                     | Props accepted by `ChatSidebarList`.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarNewButtonProps`                | Props accepted by `ChatSidebarNewButton`.                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarProps`                         | Props accepted by the `ChatSidebar` preset.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatSidebarRootProps`                     | Props accepted by `ChatSidebarRoot`.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.types.ts)             |
| `ChatStepPart`                             | Public API contract for chat step part.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatStreamEvent`                          | Event emitted for chat stream.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatStreamWatchdogOptions`                | Options accepted by chat stream watchdog.                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)               |
| `ChatStreamWatchdogPhase`                  | Public API contract for chat stream watchdog phase.                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)               |
| `ChatStreamWatchdogState`                  | State for chat stream watchdog.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/streaming/lifecycle/watchdog-compat-adapter.ts)               |
| `ChatTab`                                  | Public API contract for chat tab.                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tab-switcher.tsx)             |
| `ChatTextPart`                             | Chat message part that carries text.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatTheme`                                | Public API contract for chat theme.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/theme.ts)                                     |
| `ChatThemeScopeProps`                      | Props accepted by `ChatThemeScope`.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-theme-scope.tsx)                         |
| `ChatToolPart`                             | Public API contract for chat tool part.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatToolResultPart`                       | Chat message part that carries a tool result.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatToolState`                            | State for chat tool.                                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChatUiMessageChunk`                       | Public API contract for chat UI message chunk.                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChildRunAudit`                            | Public API contract for child run audit.                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChildRunAuditToolCall`                    | Public API contract for child run audit tool call.                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `ChildRunAuditToolResult`                  | Result returned from child run audit tool.                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts)                                                   |
| `CodeSurfaceProps`                         | Props accepted by `CodeSurface`.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                                 |
| `Conversation`                             | A full conversation - metadata + its messages. Fetched via `ConversationStore.load`.                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-store.ts)       |
| `ConversationEmptyStateProps`              | Props accepted by conversation empty state.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)              |
| `ConversationPatch`                        | Fields a conversation can be patched with.                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `ConversationsContextValue`                | Value accepted by the low-level context provider. Persistence state and `activeReady` are optional here so existing caller-supplied structural fixtures remain compatible; `ConversationsProvider` always supplies them.                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx)      |
| `ConversationScrollButtonProps`            | Props accepted by conversation scroll button.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)              |
| `ConversationsProviderProps`               | Props accepted by `ConversationsProvider`.                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx)      |
| `ConversationStorageLimits`                | Named shape of the local conversation codec's public resource limits.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-codec.ts)       |
| `ConversationStore`                        | Async persistence contract for conversations. Implement all four methods; `subscribe`/`dispose` are optional capabilities (feature-detect them).                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-store.ts)       |
| `ConversationStoreOperation`               | Persistence operation associated with a `ConversationStoreError`.                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-store.ts)       |
| `ConversationSummary`                      | Lightweight conversation metadata - what a list / sidebar needs (no messages).                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/conversation-store.ts)       |
| `CopyButtonProps`                          | Props accepted by `CopyButton`.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                                 |
| `DropZoneOverlayProps`                     | Props accepted by drop zone overlay.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/drop-zone.tsx)                |
| `ErrorBannerProps`                         | Props accepted by error banner.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/error-banner.tsx)            |
| `FeedbackValue`                            | Public API contract for feedback value.                                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-feedback.tsx)         |
| `HostedStreamPartForUiChunkMapping`        | Public API contract for hosted stream part for UI chunk mapping.                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/hosted-ui-chunk-mapping.ts)                                    |
| `HostedUiChunkMappingOptions`              | Options accepted by hosted UI chunk mapping.                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/hosted-ui-chunk-mapping.ts)                                    |
| `InferenceBadgeProps`                      | Props accepted by inference badge.                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inference-badge.tsx)          |
| `InferenceMode`                            | Where inference is happening.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `InlineCitationCardProps`                  | Props accepted by `InlineCitation.Card`.                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inline-citation.tsx)          |
| `InlineCitationProps`                      | Props accepted by inline citation.                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inline-citation.tsx)          |
| `InlineCitationTriggerProps`               | Props accepted by `InlineCitation.Trigger`.                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/inline-citation.tsx)          |
| `MarkdownProps`                            | Props accepted by `Markdown`.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/markdown.tsx)                                 |
| `MessageActionBarActionProps`              | Props shared by the `MessageActionBar.*` action leaves.                                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-actions.tsx)          |
| `MessageActionBarProps`                    | Props accepted by the context-free message action bar.                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-actions.tsx)          |
| `MessageContextValue`                      | Public API contract for message context value.                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)            |
| `MessageEditFormProps`                     | Props accepted by message edit form.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-edit-form.tsx)        |
| `MessageFeedbackActionProps`               | Props shared by `MessageFeedback.Positive` and `MessageFeedback.Negative`.                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-feedback.tsx)         |
| `MessageFeedbackProps`                     | Props accepted by message feedback.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/message-feedback.tsx)         |
| `MessagePartsData`                         | The message's grouped parts exposed as headless data.                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)            |
| `MessageProps`                             | Props accepted by `<Message />`.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/message.tsx)                 |
| `MessageRootProps`                         | Props accepted by message root.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/message.tsx)                 |
| `MessageTokensProps`                       | Props accepted by `Message.Tokens`.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/message.tsx)                 |
| `ModelAvatarProps`                         | Props accepted by model avatar.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/model-avatar.tsx)            |
| `ModelOption`                              | A "provider/model" value and its display label.                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorContentProps`                | Props for `ModelSelector.Content` - the popover surface + `Command` shell.                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorContextValue`                | Shared selection + open state exposed to `ModelSelector.*` sub-parts.                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorItemProps`                   | Props for `ModelSelector.Item` - a single selectable model row.                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorProps`                       | Props accepted by `<ModelSelector>`.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorSearchProps`                 | Props for `ModelSelector.Search`, the addressable search input leaf.                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `ModelSelectorTriggerProps`                | Props for `ModelSelector.Trigger` - the pill/icon combobox button.                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                           |
| `OnToolCallArg`                            | Public API contract for on tool call arg.                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `PartGroup`                                | Part group types for ordered rendering                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/utils/message-parts.ts)                  |
| `PromptSuggestion`                         | A prompt suggestion normalized for rendering: the short `label` shown on the chip and the full `prompt` sent when it is clicked.                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `QuickAction`                              | Public API contract for quick action.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/quick-actions.tsx)            |
| `QuickActionsProps`                        | Props accepted by quick actions.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/quick-actions.tsx)            |
| `ReasoningContextValue`                    | Per-card state shared with `Reasoning.*` sub-parts.                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/reasoning.tsx)                |
| `ReasoningProps`                           | Props accepted by `Reasoning` / `Reasoning.Root`.                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/reasoning.tsx)                |
| `ReasoningTriggerProps`                    | Props for `Reasoning.Trigger` - the disclosure button.                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/reasoning.tsx)                |
| `SkillBadgeProps`                          | Props accepted by skill badge.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/skill-badge.tsx)              |
| `Source`                                   | Public API contract for source.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                  |
| `SourcePillProps`                          | Props accepted by an individual source pill.                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                  |
| `SourcesContextValue`                      | Per-list state shared with `Sources.*` sub-parts.                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                  |
| `SourcesListProps`                         | Props for `Sources.List` - the flex-wrap row of pills.                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                  |
| `SourcesProps`                             | Props accepted by `Sources` / `Sources.Root`.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)                  |
| `StepIndicatorContextValue`                | Per-indicator state shared with `StepIndicator.*` sub-parts.                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/step-indicator.tsx)           |
| `StepIndicatorProps`                       | Props accepted by step indicator.                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/step-indicator.tsx)           |
| `StorageLike`                              | The slice of the Web Storage API this adapter needs.                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/persistence/local-conversation-store.ts) |
| `SuggestionProps`                          | Props accepted by suggestion.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)              |
| `SuggestionsProps`                         | Props accepted by suggestions.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/empty-state.tsx)              |
| `TabsItemProps`                            | Props accepted by `<TabsItem>`.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/tabs.tsx)                                       |
| `TabsProps`                                | Props accepted by `<Tabs>` (the tablist container).                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/tabs.tsx)                                       |
| `TabSwitcherProps`                         | Props accepted by tab switcher.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tab-switcher.tsx)             |
| `TokenRowProps`                            | One row in the token usage breakdown.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/composition/message.tsx)                 |
| `ToolCallContextValue`                     | Per-tool state shared with `ToolCall.*` sub-parts.                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)                  |
| `ToolCallProps`                            | Props accepted by `ToolCall` / `ToolCall.Root`.                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)                  |
| `ToolCallTriggerProps`                     | Props for `ToolCall.Trigger` - the header button.                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)                  |
| `ToolOutput`                               | Output from tool.                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `UploadedFile`                             | Public API contract for uploaded file.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)        |
| `UseAgentMetadataResult`                   | Result returned from useAgentMetadata.                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent-metadata.ts)                                  |
| `UseAgentOptions`                          | Options accepted by use agent.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts)                                           |
| `UseAgentResult`                           | Result returned from use agent.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agent.ts)                                           |
| `UseAgentsOptions`                         | Options accepted by `useAgents`.                                                                                                                                                                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agents.ts)                                          |
| `UseAgentsResult`                          | Result returned from `useAgents`.                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-agents.ts)                                          |
| `UseAttachmentsOptions`                    | Options for `useAttachments`.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-uploads-registry.ts)           |
| `UseAttachmentsRequestState`               | Additive remote-request status returned by `useAttachments`.                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-uploads-registry.ts)           |
| `UseAttachmentsResult`                     | Result of `useAttachments`.                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-uploads-registry.ts)           |
| `UseAttachmentsStorageState`               | Additive cache-status contract returned by `useAttachments`.                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-uploads-registry.ts)           |
| `UseChatError`                             | Error exposed by useChat state and callbacks.                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `UseChatInputResult`                       | Result of `useChatInput`.                                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-chat-input.ts)                 |
| `UseChatOptions`                           | Options accepted by use chat.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `UseChatResult`                            |                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-chat/types.ts)                                      |
| `UseChatScrollOptions`                     | Options for `useChatScroll`.                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-stick-to-bottom.ts)            |
| `UseChatScrollResult`                      | Result of `useChatScroll`.                                                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-stick-to-bottom.ts)            |
| `UseClipboardResult`                       | Result of `useClipboard`: transient copy feedback and a `copy` trigger.                                                                                                                                                                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/code-block.tsx)                                 |
| `UseCompletionOptions`                     | Options accepted by use completion.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-completion.ts)                                      |
| `UseCompletionResult`                      | Result returned from use completion.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-completion.ts)                                      |
| `UseConversationChatOptions`               | `useConversationChat` - the library primitive that binds a `useChat` session to conversation persistence, so application code does not need to duplicate the persistence effect.                                                                     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation-chat.ts)          |
| `UseConversationChatResult`                | Result returned by `useConversationChat`.                                                                                                                                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation-chat.ts)          |
| `UseConversationOptions`                   | Options for `useConversation`.                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation.ts)               |
| `UseConversationPersistenceState`          | Additive persistence state returned by `useConversation`. It is kept separate from the original result interface so existing structural fixtures remain source-compatible.                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation.ts)               |
| `UseConversationResult`                    | Result of `useConversation`.                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversation.ts)               |
| `UseConversationsActiveLoadState`          | Additive active-record controls returned by `useConversations`.                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `UseConversationsOptions`                  | Options for `useConversations`.                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `UseConversationsPersistenceState`         | Additive persistence state returned by `useConversations`.                                                                                                                                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `UseConversationsResult`                   | Result of `useConversations`.                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-conversations.ts)              |
| `UseMessageBranchesResult`                 | Result of `useMessageBranches`, the message's regeneration variants.                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)            |
| `UseStreamingOptions`                      | Options accepted by use streaming.                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-streaming.ts)                                       |
| `UseStreamingResult`                       | Result returned from use streaming.                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-streaming.ts)                                       |
| `UseUploadOptions`                         | Options for `useUpload`.                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-upload.ts)                     |
| `UseUploadResult`                          | Result of `useUpload`.                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/hooks/use-upload.ts)                     |
| `UseVoiceInputOptions`                     | Options accepted by use voice input.                                                                                                                                                                                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-voice-input.ts)                                     |
| `UseVoiceInputResult`                      | Result returned from use voice input.                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/agent/react/use-voice-input.ts)                                     |

### Constants

| Name                      | Description                                                                                                                                                                                                                                 | Source                                                                                                                            |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `useAgentCard`            | Read the enclosing `<AgentCard>`'s state (name, avatar, messages, tool calls, status, thinking text, and the derived status presentation) so a custom `AgentCard.*` sub-part can render it. Throws when used outside an `AgentCard`.        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-card.tsx)                          |
| `useAgentPicker`          | Read the enclosing `<AgentPicker>`'s selection and open state (selected id, `onSelect`, `open`/`setOpen`, and the optional `onCreate`/`onManage` actions) from a custom sub-part. Throws when used outside an `AgentPicker`.                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/agent-picker-context.tsx)                |
| `useAppShell`             |                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/ui/app-shell.tsx)                             |
| `useAttachmentPill`       | Read the derived per-pill state provided by `AttachmentPill.Root`. Use it to build a custom pill part; throws if called outside an `AttachmentPill`.                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachment-pill.tsx)     |
| `useAttachmentsPanel`     | Read the panel state provided by `AttachmentsPanel.Root` (uploads + handlers). Use it to build a custom panel part; throws outside an `AttachmentsPanel`.                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/attachments-panel.tsx)   |
| `useChatActions`          | Read the current `ChatActions` preset configuration from a composed `ChatActions.*` part. Throws outside `ChatActions` / `ChatActions.Root`.                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat-actions.tsx)                        |
| `useChatContext`          | Read the enclosing chat's shared state (messages, input, submit/stop, model, attachments, branches, theme). Provided by `<Chat.Root>` / `<Chat>`; throws when used outside one.                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/chat-context.tsx)          |
| `useChatInputContext`     | Read the enclosing `<ChatInput>` context; throws outside one.                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/composer-context.tsx)      |
| `useChatSidebarItem`      | Read the enclosing `<ChatSidebar.Item>`'s row state (the conversation summary, active flag, rename availability + `startRename`, `remove`, and the `…` menu open state) from a custom item sub-part. Throws outside a `<ChatSidebar.Item>`. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sidebar.tsx)             |
| `useConversationsContext` |                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/conversations-context.tsx) |
| `useMessageContext`       | Read the enclosing message's state (the message, role, streaming flag, parts, branch navigation, copy/edit/regenerate/feedback actions). Provided by `<Message.Root>`; throws when used outside a `<Message>`.                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/contexts/message-context.tsx)       |
| `useModelSelector`        | Read the current `ModelSelector`'s selection + open state from a `ModelSelector.*` sub-part. Throws when called outside a `ModelSelector` / `ModelSelector.Root`.                                                                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/model-selector.tsx)                      |
| `useReasoning`            | Read the disclosure state provided by `Reasoning.Root` (text + open state). Use it to build a custom disclosure part; throws outside a `Reasoning`.                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/reasoning.tsx)           |
| `useSources`              | Read the state provided by `Sources.Root` (sources + click handler). Use it to build a custom row part; throws when called outside a `Sources`.                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/sources.tsx)             |
| `useStepIndicator`        | Read the current `StepIndicator`'s state from a `StepIndicator.*` sub-part. Throws when called outside a `StepIndicator` / `StepIndicator.Root`.                                                                                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/step-indicator.tsx)      |
| `useToolCall`             | Read the current `ToolCall`'s state from a `ToolCall.*` sub-part. Throws when called outside a `ToolCall` / `ToolCall.Root`.                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/components/chat/chat/components/tool-ui.tsx)             |

## Deep imports

These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.

### `veryfront/chat/ag-ui`

```ts
import {
  createAgUiChatEventDecoderState,
  decodeAgUiSseChunk,
  flushAgUiSseChunk,
} from "veryfront/chat/ag-ui";
```

#### Components

| Name                            | Description                                                  | Source                                                                            |
| ------------------------------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------- |
| `DEFAULT_AG_UI_MAX_FRAME_CHARS` | Default maximum characters retained for one AG-UI SSE frame. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |

#### Functions

| Name                                     | Description                                     | Source                                                                            |
| ---------------------------------------- | ----------------------------------------------- | --------------------------------------------------------------------------------- |
| `createAgUiChatEventDecoderState`        | State for create AG-UI chat event decoder.      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `decodeAgUiSseChunk`                     | Decode AG-UI SSE chunk.                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `flushAgUiSseChunk`                      | Flush AG-UI SSE chunk.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `mapAgUiRuntimeMessagesToChatUiMessages` | Map AG-UI runtime messages to chat UI messages. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `parseSseEvent`                          | Event emitted for parse sse.                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |

#### Types

| Name                        | Description                                            | Source                                                                            |
| --------------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------- |
| `AgUiChatEventDecoderState` | State for AG-UI chat event decoder.                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiDecodedChunk`          | Public API contract for AG-UI decoded chunk.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiDecodedEvent`          | Event emitted for AG-UI decoded.                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiDecoderValidationMode` | Public API contract for AG-UI decoder validation mode. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiRunFinishedMetadata`   | Public API contract for AG-UI run finished metadata.   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiRuntimeMessage`        | Message shape for AG-UI runtime.                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiRuntimeToolCall`       | Public API contract for AG-UI runtime tool call.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiSnapshotMessage`       | Message shape for AG-UI snapshot.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiWireEvent`             | Event emitted for AG-UI wire.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `AgUiWireEventName`         | Public API contract for AG-UI wire event name.         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `ParsedSseEvent`            | Event emitted for parsed sse.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |

#### Constants

| Name                               | Description                                     | Source                                                                            |
| ---------------------------------- | ----------------------------------------------- | --------------------------------------------------------------------------------- |
| `getAgUiRunFinishedMetadataSchema` | Zod schema for get AG-UI run finished metadata. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `getAgUiSnapshotMessageSchema`     | Zod schema for get AG-UI snapshot message.      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `getAgUiSnapshotToolCallSchema`    | Zod schema for get AG-UI snapshot tool call.    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `getAgUiWireEventNameSchema`       | Zod schema for get AG-UI wire event name.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |
| `getAgUiWireEventSchema`           | Zod schema for get AG-UI wire event.            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/ag-ui.ts) |

### `veryfront/chat/message-prep`

```ts
import {
  assertPreparedMessageBudget,
  compactForStep,
  compactHistoricalUiMessageToolInputs,
} from "veryfront/chat/message-prep";
```

#### Components

| Name                          | Description                                  | Source                                                                                         |
| ----------------------------- | -------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `DEFAULT_MESSAGE_PREP_LIMITS` | Default limits for chat history preparation. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |

#### Functions

| Name                                         | Description                                                                                                                                                                                                                                                                                                                             | Source                                                                                                        |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `assertPreparedMessageBudget`                | Reject provider messages that exceed the shared prepared context budget.                                                                                                                                                                                                                                                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-budget.ts)               |
| `compactForStep`                             | Compact for step.                                                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `compactHistoricalUiMessageToolInputs`       | Compact large historical UI-message tool inputs after matching results are available.                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `compactOldToolInputs`                       | Compact large historical tool-call inputs after matching results are available.                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `compressTurn`                               | Compress turn.                                                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `dedupeToolHistory`                          | Dedupe tool history.                                                                                                                                                                                                                                                                                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `enforceTokenBudget`                         | Enforce token budget.                                                                                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `enforceTokenBudgetWithTurnCompression`      | Enforce token budget with turn compression.                                                                                                                                                                                                                                                                                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `ensureToolCallInputs`                       | Ensure tool call inputs helper.                                                                                                                                                                                                                                                                                                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `estimateMessageTokenBreakdown`              | Estimate token categories for provider, UI, or runtime messages.                                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-token-breakdown.ts)           |
| `estimateOverhead`                           | Estimate overhead.                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-budget.ts)               |
| `estimateTokens`                             | Estimate tokens.                                                                                                                                                                                                                                                                                                                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-budget.ts)               |
| `isModelSupportedFileMediaType`              | Check whether the model supports the file media type.                                                                                                                                                                                                                                                                                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-file-parts.ts)                |
| `maskOldToolOutputs`                         | Mask old tool outputs while retaining preceding-turn file evidence and resource results for follow-ups. Resource arrays, collection results, and objects with resource IDs retain up to 4,096 output characters; request, tool-call, trace, span, and correlation IDs alone do not qualify. Existing summary contracts take precedence. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `normalizeMessageFilePartMediaTypes`         | Normalizes message file part media types.                                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-file-parts.ts)                |
| `prepareProviderModelMessagesFromUiMessages` | Prepare provider model messages from UI messages.                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `repairToolPairs`                            | Repair tool pairs.                                                                                                                                                                                                                                                                                                                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/provider-message-tool-pair-repair.ts) |
| `rewriteUnsupportedFilePartsAsAnnotations`   | Rewrite unsupported file parts as annotations.                                                                                                                                                                                                                                                                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-file-parts.ts)                |
| `sanitizeProviderModelMessages`              | Sanitize provider model messages.                                                                                                                                                                                                                                                                                                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |
| `stripPendingToolParts`                      | Strip pending tool parts.                                                                                                                                                                                                                                                                                                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep.ts)                      |

#### Types

| Name                                                | Description                                                             | Source                                                                                         |
| --------------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `HistoricalToolInputCompactionDiagnostic`           | Diagnostic emitted when a completed historical tool input is compacted. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `HistoricalToolInputRetainedField`                  | Field selector retained in a historical tool-input summary.             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `HistoricalToolInputRetentionOptions`               | Options for historical tool-input compaction.                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `HistoricalToolInputRetentionPolicy`                | Policy for compacting a completed historical tool-call input.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `HistoricalToolInputRetentionPolicyResolver`        | Resolves the retention policy for a completed historical tool input.    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `MessagePrepLimits`                                 | Tunable limits used while preparing chat history for model context.     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `MessageTokenBreakdown`                             | Approximate token categories for context diagnostics.                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |
| `PrepareProviderModelMessagesFromUiMessagesOptions` | Options accepted by prepare provider model messages from UI messages.   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/message-prep-types.ts) |

### `veryfront/chat/protocol`

Canonical chat message and stream protocol for Veryfront chat surfaces. These types describe the framework-owned message parts and stream events used by AG-UI-aligned chat clients, hooks, and adapters.

```ts
import type { ChatDataPart, ChatDynamicToolPart, ChatFilePart } from "veryfront/chat/protocol";
```

#### Types

| Name                       | Description                                                             | Source                                                                               |
| -------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `ChatDataPart`             | Public API contract for chat data part.                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatDynamicToolPart`      | Public API contract for chat dynamic tool part.                         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatFilePart`             | Chat message part that carries an uploaded file or image attachment.    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatFinishReason`         | Public API contract for chat finish reason.                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatMessage`              | Message shape for chat.                                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatMessageMetadata`      | Public API contract for chat message metadata.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatMessageMetadataUsage` | Public API contract for chat message metadata usage.                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatMessagePart`          | Public API contract for chat message part.                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatPartState`            | Canonical chat message and stream protocol for Veryfront chat surfaces. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatReasoningPart`        | Chat message part that carries reasoning text.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatSourceDocumentPart`   | Chat message part that carries a document citation source.              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatSourceUrlPart`        | Chat message part that carries a URL citation source.                   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatStepPart`             | Public API contract for chat step part.                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatStreamEvent`          | Event emitted for chat stream.                                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatTextPart`             | Chat message part that carries text.                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatToolPart`             | Public API contract for chat tool part.                                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatToolResultPart`       | Chat message part that carries a tool result.                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatToolState`            | State for chat tool.                                                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatUiMessageChunk`       | Public API contract for chat UI message chunk.                          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChildRunAudit`            | Public API contract for child run audit.                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChildRunAuditToolCall`    | Public API contract for child run audit tool call.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChildRunAuditToolResult`  | Result returned from child run audit tool.                              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |

### `veryfront/chat/types`

```ts
import { buildDataFileAnnotation, isImageFile, isTextPreviewFile } from "veryfront/chat/types";
```

#### Functions

| Name                                 | Description                                       | Source                                                                            |
| ------------------------------------ | ------------------------------------------------- | --------------------------------------------------------------------------------- |
| `buildDataFileAnnotation`            | Builds data file annotation.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `isImageFile`                        | Check whether a file is an image.                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `isTextPreviewFile`                  | Check whether a file supports text preview.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `isValidImageFile`                   | Check whether a file is a supported image upload. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `normalizeInlineAttachmentMediaType` | Normalizes inline attachment media type.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |

#### Types

| Name                       | Description                                              | Source                                                                               |
| -------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `ChatAssistantContentPart` | Public API contract for chat assistant content part.     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatAssistantMessage`     | Message shape for chat assistant.                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatDataUiPart`           | Chat UI part that carries custom data chunks.            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatDynamicToolUiPart`    | Tool UI part for a runtime-selected tool name.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatFileUiPart`           | Public API contract for chat file UI part.               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatMessageMetadata`      | Public API contract for chat message metadata.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatMessageMetadataUsage` | Public API contract for chat message metadata usage.     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatModelFilePart`        | Public API contract for chat model file part.            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatModelReasoningPart`   | Provider model message part that carries reasoning text. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatModelTextPart`        | Provider model message part that carries text.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatNamedToolUiPart`      | Tool UI part keyed by a static tool type.                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatReasoningUiPart`      | Public API contract for chat reasoning UI part.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatRequestContext`       | Context for chat request.                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatRuntimeOverrides`     | Public API contract for chat runtime overrides.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatSourceDocumentUiPart` | Public API contract for chat source document UI part.    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatSourceUrlUiPart`      | Public API contract for chat source URL UI part.         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatStepStartUiPart`      | Public API contract for chat step start UI part.         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatSystemMessage`        | Message shape for chat system.                           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatTextUiPart`           | Public API contract for chat text UI part.               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatToolCallPart`         | Provider model message part that carries a tool call.    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatToolMessage`          | Message shape for chat tool.                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatToolPartState`        | State for chat tool part.                                | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatToolResultOutput`     | Output from chat tool result.                            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatToolResultPart`       | Provider model message part that carries a tool result.  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatUiMessage`            | Message shape for chat UI.                               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatUiMessageChunk`       | Public API contract for chat UI message chunk.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChatUiMessagePart`        | Public API contract for chat UI message part.            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatUiMessageRole`        | Public API contract for chat UI message role.            | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatUserContentPart`      | Public API contract for chat user content part.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChatUserMessage`          | Message shape for chat user.                             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ChildRunAudit`            | Public API contract for child run audit.                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChildRunAuditToolCall`    | Public API contract for child run audit tool call.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ChildRunAuditToolResult`  | Result returned from child run audit tool.               | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `DurableRootRunDescriptor` | Public API contract for durable root run descriptor.     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `FileUIPartWithUpload`     | File UI part enriched with upload metadata.              | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `MessageMetadata`          | Public API contract for chat message metadata.           | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/protocol.ts) |
| `ProjectFile`              | Public API contract for project file.                    | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ProjectFileListItem`      | Public API contract for project file list item.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `ProviderModelMessage`     | Message shape for provider model.                        | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |
| `UploadedFileReference`    | Public API contract for uploaded file reference.         | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts)    |

#### Constants

| Name                          | Description                                               | Source                                                                            |
| ----------------------------- | --------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `getChatRequestContextSchema` | Zod schema for get chat request context.                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getChatToolPartStateSchema`  | Zod schema for get chat tool part state.                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getChatUiMessagePartSchema`  | Zod schema for get chat UI message part.                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getChatUiMessageRoleSchema`  | Zod schema for get chat UI message role.                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getChatUiMessageSchema`      | Zod schema for get chat UI message.                       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getChatUiMessagesSchema`     | Zod schema for get chat UI messages.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `getMessageMetadataSchema`    | Zod schema for get message metadata.                      | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `imageFileTypes`              | Image media types that chat uploads can display natively. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |
| `textFileExtensions`          | File extensions that chat uploads can inline as text.     | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/types.ts) |

### `veryfront/chat/uploads`

Chat upload handler: the server side of `<Chat>`'s batteries-included attachments. Mount it at `app/api/uploads/route.ts` (the same endpoint the composer POSTs to) and files "just work": stored on the local disk in dev, on Veryfront Cloud (or a `BlobStorage` you pass) once deployed. ``ts // app/api/uploads/route.ts import { createChatUploadHandler } from "veryfront/chat/uploads"; function authorize(request: Request) { const token = Deno.env.get("UPLOAD_TOKEN"); return Boolean(token && request.headers.get("authorization") === `Bearer ${token}`); } export const { POST, GET, DELETE } = createChatUploadHandler({ authorize });`` `POST` stores the multipart `file` field and returns `{ id, url, name, mediaType, size }`. The composer sends that `url` as a `file` message part, which the runtime fetches, so the URL must be reachable by the runtime (true for local dev, where `GET` streams the file back from the same origin).

```ts
import { createChatUploadHandler, resolveStorage } from "veryfront/chat/uploads";
```

#### Functions

| Name                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Source                                                                                     |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `createChatUploadHandler` | Build `{ POST, GET, DELETE }` route handlers for chat attachments. Auto-selects local disk storage in dev and Veryfront Cloud once deployed, or the `storage` you provide. Every route fails closed unless an authorizer returns literal `true` or unauthenticated access is explicitly enabled. Multipart request bodies and file bytes are bounded independently. `GET` without an `id` (the listing used by `useAttachments` on mount) responds `400` unless `allowListing: true` opts in. Enable it only when every authorized caller may access every stored upload. `DELETE ?id=` removes the file from storage. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/upload-handler.ts) |
| `resolveStorage`          | Select the blob backend for chat uploads: an explicitly configured storage wins, then Veryfront Cloud once deployed, then local disk.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/upload-handler.ts) |

#### Types

| Name                            | Description                                        | Source                                                                                     |
| ------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `ChatUploadAuthorizationResult` | Result returned by a chat upload-route authorizer. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/upload-handler.ts) |
| `ChatUploadAuthorize`           | Authorizes one chat upload-route request.          | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/upload-handler.ts) |
| `ChatUploadHandlerConfig`       | Configuration for `createChatUploadHandler`.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/chat/upload-handler.ts) |
