---
name: Agent Kit
slug: inngest-agent-kit
type: github
source_url: https://github.com/inngest/agent-kit
organization: Inngest
organization_slug: inngest
total_releases: 35
latest_version: @inngest/agent-kit@0.13.2
latest_date: 2025-11-13
last_updated: 2026-04-19
tracking_since: 2024-11-22
canonical: https://releases.sh/inngest/inngest-agent-kit
organization_url: https://releases.sh/inngest
---

<Release version="@inngest/agent-kit@0.13.2" date="November 13, 2025" published="2025-11-13T15:27:01.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.13.2">
### Patch Changes

-   3818d37: Support multiple `AsyncContext` shapes following an update in `inngest@3.45.0`

</Release>

<Release version="@inngest/agent-kit@0.13.1" date="October 7, 2025" published="2025-10-07T19:30:40.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.13.1">
### Patch Changes

-   07ae4dd: Remove unused json-schema-to-zod require from bundled cjs

</Release>

<Release version="@inngest/use-agent@0.4.0" date="October 1, 2025" published="2025-10-01T21:08:57.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/use-agent%400.4.0">
### Minor Changes

-   2ffb890: made history strongly typed with AgentKitMessage

</Release>

<Release version="@inngest/agent-kit@0.13.0" date="September 27, 2025" published="2025-09-27T00:27:07.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.13.0">
### Minor Changes

-   c9b0b16: support for latest version of inngest (3.43.1)
    integrated azure-openai model from @inngest/ai
    migrated to zod v4 and removed zod-to-json-schema package in favor of native z.toJSONSchema()

</Release>

<Release version="@inngest/agent-kit@0.12.1" date="September 25, 2025" published="2025-09-25T17:14:12.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.12.1">
### Patch Changes

-   4a81376: replacing the static import of json-schema-to-zod with a dynamic import() inside the function where it's used to resolve crashing when loading agentkit in a cjs project using require()

</Release>

<Release version="@inngest/use-agent@0.3.0" date="September 24, 2025" published="2025-09-24T20:49:38.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/use-agent%400.3.0">
### Minor Changes

-   b175718: # New Package: @inngest/use-agent

    Introducing a comprehensive React hooks package for building AI chat interfaces with AgentKit networks.

    ## What's New

    **@inngest/use-agent** is a standalone npm package that provides a complete set of React hooks for integrating with AgentKit. This package extracts and consolidates all the React functionality needed to build sophisticated AI chat applications.

    ### Core Features

    -   **Core Hooks**: `useAgent`, `useChat`, `useThreads` for real-time streaming and thread management
    -   **Utility Hooks**: `useEphemeralThreads`, `useConversationBranching`, `useEditMessage`, `useMessageActions`, `useSidebar`, `useIsMobile`
    -   **Provider System**: `AgentProvider` for shared connections and configuration
    -   **Transport Layer**: Configurable API layer with `DefaultAgentTransport` and custom transport support
    -   **TypeScript Support**: Full type definitions for all hooks and components
    -   **Next.js Compatibility**: All hooks properly marked with "use client" directives

    ### Installation

    ```bash
    npm install @inngest/use-agents
    # Peer dependencies
    npm install react @inngest/realtime uuid
    ```

    ### Basic Usage

    ```typescript
    import { useChat, AgentProvider } from '@inngest/use-agents';

    function App() {
      return (
        <AgentProvider userId="user-123">
          <ChatComponent />
        </AgentProvider>
      );
    }

    function ChatComponent() {
      const { messages, sendMessage, status } = useChat();
      return <div>/* Your chat UI */</div>;
    }
    ```

    ### Why This Package

    This package enables developers to:

    -   Build AI chat applications without reinventing the wheel
    -   Leverage pre-built, battle-tested React hooks for AgentKit integration
    -   Maintain consistent patterns across different projects
    -   Focus on UI/UX instead of low-level streaming and state management

    ### Migration Guide

    If you were previously using local hooks from AgentKit examples, replace local imports:

    ```typescript
    // Before
    import { useChat } from "@/hooks";
    import { AgentProvider } from "@/contexts/AgentContext";

    // After
    import { useChat, AgentProvider } from "@inngest/use-agents";
    ```

    No functional changes are required - the API is identical to the previous local implementation.

</Release>

<Release version="@inngest/agent-kit@0.12.0" date="September 24, 2025" published="2025-09-24T20:49:35.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.12.0">
### Minor Changes

-   b175718: # Comprehensive AgentKit Enhancements

    Major improvements to AgentKit with enhanced documentation, new API routes, comprehensive UI components, and example applications.

    ## 📚 Documentation Enhancements

    **New Advanced Pattern Guides:**

    -   Added `legacy-ui-streaming.mdx` - Guide for UI streaming with useAgent hook
    -   Added `use-chat.mdx` - Comprehensive guide for building chat interfaces
    -   Added `use-threads.mdx` - Documentation for managing conversation threads
    -   Added `use-agent.mdx` - Updated agent integration patterns

    **Documentation Reorganization:**

    -   Moved UI streaming guides to dedicated UI Integration section
    -   Enhanced advanced patterns with practical examples
    -   Added sequence diagrams and usage guides

    ## ⚡ Revolutionary Automatic Event Streaming System

    **Comprehensive Streaming Architecture:**

    -   **StreamingContext**: Hierarchical context management for network/agent runs with shared sequence counters
    -   **Event Schema**: 15+ event types covering complete agent lifecycle (run.started, part.created, text.delta, tool calls, HITL, etc.)
    -   **Automatic Enrichment**: Events auto-enriched with threadId, userId, and context metadata
    -   **Sequence Management**: Monotonic sequence numbering for perfect event ordering across contexts
    -   **Parent/Child Contexts**: Seamless context inheritance for agent runs within network runs
    -   **Proxy-based Step Wrapper**: Transparent integration with Inngest steps without breaking existing code
    -   **Best-effort Publishing**: Graceful error handling that never breaks agent execution
    -   **OpenAI-Compatible IDs**: Automatic generation of tool call IDs within OpenAI's 40-character limit

    **Event Types Supported:**

    -   **Lifecycle Events**: `run.started`, `run.completed`, `run.failed`, `run.interrupted`
    -   **Content Streaming**: `text.delta`, `reasoning.delta`, `data.delta`
    -   **Tool Integration**: `tool_call.arguments.delta`, `tool_call.output.delta`
    -   **Part Management**: `part.created`, `part.completed`, `part.failed`
    -   **HITL Support**: `hitl.requested`, `hitl.resolved`
    -   **Metadata & Control**: `usage.updated`, `metadata.updated`, `stream.ended`

    **Developer Experience:**

    -   **Zero Configuration**: Automatic context extraction from network state
    -   **Debug Logging**: Comprehensive debug output for development
    -   **Shared Sequence Counters**: Perfect event ordering across multiple contexts
    -   **Flexible Publishing**: Configurable publish functions for any transport

    This streaming system enables real-time UI updates that perfectly match the `useAgent` hook expectations, creating seamless agent-to-UI communication.

    ## 🚀 New API Routes & Backend Features

    **Chat & Communication:**

    -   `POST /api/chat` - Main chat endpoint with Zod validation and Inngest integration
    -   `POST /api/chat/cancel` - Chat cancellation with run interruption events
    -   `POST /api/approve-tool` - Human-in-the-loop tool approval system
    -   `POST /api/realtime/token` - Real-time subscription token generation

    **Thread Management:**

    -   `GET/POST /api/threads` - Thread listing and creation with pagination
    -   `GET/DELETE/PATCH /api/threads/[threadId]` - Individual thread operations
    -   Thread title generation and metadata management
    -   Support for both authenticated and anonymous users

    **Integration:**

    -   `/api/inngest/route` - Inngest function serving with runAgentChat
    -   PostgresHistoryAdapter integration for persistent storage

    ## 🎨 Comprehensive UI Component Library

    **AI-Specific Elements:**

    -   `Actions` & `Action` - Interactive action buttons with tooltips
    -   `Branch` components - Conversation branching and navigation
    -   `CodeBlock` - Syntax-highlighted code display with copy functionality
    -   `Conversation` - Chat conversation containers with scroll management
    -   `Image` - AI-generated image display components
    -   `InlineCitation` - Citation cards and source referencing
    -   `Loader` - Loading animations and states
    -   `Message` components - Message display with avatars and content
    -   `PromptInput` - Responsive chat input with model selection
    -   `Reasoning` - Agent reasoning display with streaming support
    -   `Sources` - Source material display and linking
    -   `Suggestion` - AI suggestion chips and interactions
    -   `Task` - Task display and management components
    -   `Tool` - Tool call display with input/output views
    -   `WebPreview` - Web page preview components

    **Chat Interface Components:**

    -   `Chat` - Main chat interface with sidebar integration
    -   `EmptyState` - Welcome screen with suggestions
    -   `ChatHeader` - Header with actions and agent information
    -   `ShareDialog` - Thread sharing functionality
    -   Message parts for all content types (Text, Tool, Data, File, Source, etc.)
    -   `MessageActions` - Copy, edit, regenerate, like/dislike functionality
    -   `MessageEditor` - In-place message editing
    -   Sidebar components (Desktop & Mobile) with thread management

    **Playground & Development Tools:**

    -   `SqlPlayground` - Interactive SQL query interface
    -   `SqlEditor` - SQL editing with syntax highlighting
    -   `EphemeralChat` - Client-side only chat for demos
    -   `MultiChat` - Multiple concurrent chat sessions
    -   Tab management for multiple contexts

    **UI Primitives & Layout:**

    -   Complete shadcn/ui component library integration
    -   `Button`, `Card`, `Dialog`, `Sheet`, `Tabs` and 30+ UI primitives
    -   Responsive layouts and mobile-first design
    -   Dark/light theme support with CSS custom properties

    ## 🔧 Developer Experience Improvements

    **Example Applications:**

    -   Multi-chat interface for concurrent conversations
    -   SQL playground with chat integration
    -   Thread-based routing (`/chat/[threadId]`)
    -   Responsive design patterns

    **Build & Configuration:**

    -   Next.js App Router integration
    -   Tailwind CSS with custom design system
    -   TypeScript throughout with strict type checking
    -   Component composition patterns

    **Development Tools:**

    -   Hot reload support for rapid development
    -   Comprehensive prop interfaces and documentation
    -   Modular component architecture
    -   Mobile-responsive design patterns

    ## 🎯 Key Benefits

    -   **Faster Development**: Pre-built components reduce implementation time
    -   **Consistent UX**: Unified design system across all AgentKit applications
    -   **Production Ready**: Battle-tested components with proper error handling
    -   **Flexible Architecture**: Composable components for custom implementations
    -   **Enhanced Documentation**: Clear guides for common integration patterns

    This release significantly enhances the AgentKit ecosystem with production-ready tools for building sophisticated AI chat applications.

</Release>

<Release version="@inngest/agent-kit@0.11.0" date="September 24, 2025" published="2025-09-24T14:56:37.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.11.0">
### Minor Changes

-   81c90df: # Comprehensive AgentKit Enhancements

    Major improvements to AgentKit with enhanced documentation, new API routes, comprehensive UI components, and example applications.

    ## 📚 Documentation Enhancements

    **New Advanced Pattern Guides:**

    -   Added `legacy-ui-streaming.mdx` - Guide for UI streaming with useAgent hook
    -   Added `use-chat.mdx` - Comprehensive guide for building chat interfaces
    -   Added `use-threads.mdx` - Documentation for managing conversation threads
    -   Added `use-agent.mdx` - Updated agent integration patterns

    **Documentation Reorganization:**

    -   Moved UI streaming guides to dedicated UI Integration section
    -   Enhanced advanced patterns with practical examples
    -   Added sequence diagrams and usage guides

    ## ⚡ Revolutionary Automatic Event Streaming System

    **Comprehensive Streaming Architecture:**

    -   **StreamingContext**: Hierarchical context management for network/agent runs with shared sequence counters
    -   **Event Schema**: 15+ event types covering complete agent lifecycle (run.started, part.created, text.delta, tool calls, HITL, etc.)
    -   **Automatic Enrichment**: Events auto-enriched with threadId, userId, and context metadata
    -   **Sequence Management**: Monotonic sequence numbering for perfect event ordering across contexts
    -   **Parent/Child Contexts**: Seamless context inheritance for agent runs within network runs
    -   **Proxy-based Step Wrapper**: Transparent integration with Inngest steps without breaking existing code
    -   **Best-effort Publishing**: Graceful error handling that never breaks agent execution
    -   **OpenAI-Compatible IDs**: Automatic generation of tool call IDs within OpenAI's 40-character limit

    **Event Types Supported:**

    -   **Lifecycle Events**: `run.started`, `run.completed`, `run.failed`, `run.interrupted`
    -   **Content Streaming**: `text.delta`, `reasoning.delta`, `data.delta`
    -   **Tool Integration**: `tool_call.arguments.delta`, `tool_call.output.delta`
    -   **Part Management**: `part.created`, `part.completed`, `part.failed`
    -   **HITL Support**: `hitl.requested`, `hitl.resolved`
    -   **Metadata & Control**: `usage.updated`, `metadata.updated`, `stream.ended`

    **Developer Experience:**

    -   **Zero Configuration**: Automatic context extraction from network state
    -   **Debug Logging**: Comprehensive debug output for development
    -   **Shared Sequence Counters**: Perfect event ordering across multiple contexts
    -   **Flexible Publishing**: Configurable publish functions for any transport

    This streaming system enables real-time UI updates that perfectly match the `useAgent` hook expectations, creating seamless agent-to-UI communication.

    ## 🚀 New API Routes & Backend Features

    **Chat & Communication:**

    -   `POST /api/chat` - Main chat endpoint with Zod validation and Inngest integration
    -   `POST /api/chat/cancel` - Chat cancellation with run interruption events
    -   `POST /api/approve-tool` - Human-in-the-loop tool approval system
    -   `POST /api/realtime/token` - Real-time subscription token generation

    **Thread Management:**

    -   `GET/POST /api/threads` - Thread listing and creation with pagination
    -   `GET/DELETE/PATCH /api/threads/[threadId]` - Individual thread operations
    -   Thread title generation and metadata management
    -   Support for both authenticated and anonymous users

    **Integration:**

    -   `/api/inngest/route` - Inngest function serving with runAgentChat
    -   PostgresHistoryAdapter integration for persistent storage

    ## 🎨 Comprehensive UI Component Library

    **AI-Specific Elements:**

    -   `Actions` & `Action` - Interactive action buttons with tooltips
    -   `Branch` components - Conversation branching and navigation
    -   `CodeBlock` - Syntax-highlighted code display with copy functionality
    -   `Conversation` - Chat conversation containers with scroll management
    -   `Image` - AI-generated image display components
    -   `InlineCitation` - Citation cards and source referencing
    -   `Loader` - Loading animations and states
    -   `Message` components - Message display with avatars and content
    -   `PromptInput` - Responsive chat input with model selection
    -   `Reasoning` - Agent reasoning display with streaming support
    -   `Sources` - Source material display and linking
    -   `Suggestion` - AI suggestion chips and interactions
    -   `Task` - Task display and management components
    -   `Tool` - Tool call display with input/output views
    -   `WebPreview` - Web page preview components

    **Chat Interface Components:**

    -   `Chat` - Main chat interface with sidebar integration
    -   `EmptyState` - Welcome screen with suggestions
    -   `ChatHeader` - Header with actions and agent information
    -   `ShareDialog` - Thread sharing functionality
    -   Message parts for all content types (Text, Tool, Data, File, Source, etc.)
    -   `MessageActions` - Copy, edit, regenerate, like/dislike functionality
    -   `MessageEditor` - In-place message editing
    -   Sidebar components (Desktop & Mobile) with thread management

    **Playground & Development Tools:**

    -   `SqlPlayground` - Interactive SQL query interface
    -   `SqlEditor` - SQL editing with syntax highlighting
    -   `EphemeralChat` - Client-side only chat for demos
    -   `MultiChat` - Multiple concurrent chat sessions
    -   Tab management for multiple contexts

    **UI Primitives & Layout:**

    -   Complete shadcn/ui component library integration
    -   `Button`, `Card`, `Dialog`, `Sheet`, `Tabs` and 30+ UI primitives
    -   Responsive layouts and mobile-first design
    -   Dark/light theme support with CSS custom properties

    ## 🔧 Developer Experience Improvements

    **Example Applications:**

    -   Multi-chat interface for concurrent conversations
    -   SQL playground with chat integration
    -   Thread-based routing (`/chat/[threadId]`)
    -   Responsive design patterns

    **Build & Configuration:**

    -   Next.js App Router integration
    -   Tailwind CSS with custom design system
    -   TypeScript throughout with strict type checking
    -   Component composition patterns

    **Development Tools:**

    -   Hot reload support for rapid development
    -   Comprehensive prop interfaces and documentation
    -   Modular component architecture
    -   Mobile-responsive design patterns

    ## 🎯 Key Benefits

    -   **Faster Development**: Pre-built components reduce implementation time
    -   **Consistent UX**: Unified design system across all AgentKit applications
    -   **Production Ready**: Battle-tested components with proper error handling
    -   **Flexible Architecture**: Composable components for custom implementations
    -   **Enhanced Documentation**: Clear guides for common integration patterns

    This release significantly enhances the AgentKit ecosystem with production-ready tools for building sophisticated AI chat applications.

</Release>

<Release version="@inngest/use-agent@0.2.0" date="September 24, 2025" published="2025-09-24T14:56:34.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/use-agent%400.2.0">
### Minor Changes

-   81c90df: # New Package: @inngest/use-agent

    Introducing a comprehensive React hooks package for building AI chat interfaces with AgentKit networks.

    ## What's New

    **@inngest/use-agent** is a standalone npm package that provides a complete set of React hooks for integrating with AgentKit. This package extracts and consolidates all the React functionality needed to build sophisticated AI chat applications.

    ### Core Features

    -   **Core Hooks**: `useAgent`, `useChat`, `useThreads` for real-time streaming and thread management
    -   **Utility Hooks**: `useEphemeralThreads`, `useConversationBranching`, `useEditMessage`, `useMessageActions`, `useSidebar`, `useIsMobile`
    -   **Provider System**: `AgentProvider` for shared connections and configuration
    -   **Transport Layer**: Configurable API layer with `DefaultAgentTransport` and custom transport support
    -   **TypeScript Support**: Full type definitions for all hooks and components
    -   **Next.js Compatibility**: All hooks properly marked with "use client" directives

    ### Installation

    ```bash
    npm install @inngest/use-agents
    # Peer dependencies
    npm install react @inngest/realtime uuid
    ```

    ### Basic Usage

    ```typescript
    import { useChat, AgentProvider } from '@inngest/use-agents';

    function App() {
      return (
        <AgentProvider userId="user-123">
          <ChatComponent />
        </AgentProvider>
      );
    }

    function ChatComponent() {
      const { messages, sendMessage, status } = useChat();
      return <div>/* Your chat UI */</div>;
    }
    ```

    ### Why This Package

    This package enables developers to:

    -   Build AI chat applications without reinventing the wheel
    -   Leverage pre-built, battle-tested React hooks for AgentKit integration
    -   Maintain consistent patterns across different projects
    -   Focus on UI/UX instead of low-level streaming and state management

    ### Migration Guide

    If you were previously using local hooks from AgentKit examples, replace local imports:

    ```typescript
    // Before
    import { useChat } from "@/hooks";
    import { AgentProvider } from "@/contexts/AgentContext";

    // After
    import { useChat, AgentProvider } from "@inngest/use-agents";
    ```

    No functional changes are required - the API is identical to the previous local implementation.

</Release>

<Release version="@inngest/agent-kit@0.9.0" date="July 1, 2025" published="2025-07-01T19:24:38.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.9.0">
### Minor Changes

-   d9507fb: Added support for persistent conversation history via HistoryAdapters
    Created an example NextJS app with realtime responses and thread management

</Release>

<Release version="@inngest/agent-kit@0.8.4" date="July 1, 2025" published="2025-07-01T18:38:43.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.8.4">
### Patch Changes

-   fed9545: fixed deserialization of state losing messages and results in Inngest context

</Release>

<Release version="@inngest/agent-kit@0.8.3" date="June 20, 2025" published="2025-06-20T01:51:44.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.8.3">
### Patch Changes

-   2f56454: fixed issue with openai parser not handling responses with both text and tool call parts

</Release>

<Release version="@inngest/agent-kit@0.8.2" date="June 19, 2025" published="2025-06-19T16:24:48.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.8.2">
### Patch Changes

-   f09cb8e: Adding recursive check for removing additionalProperties for gemini.

</Release>

<Release version="@inngest/agent-kit@0.8.1" date="June 18, 2025" published="2025-06-18T21:22:34.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.8.1">
### Patch Changes

-   f476961: Fixed Gemini adapter response parsing & malformed function call handling

</Release>

<Release version="@inngest/agent-kit@0.8.0" date="May 14, 2025" published="2025-05-14T19:12:44.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.8.0">
### Minor Changes

-   e59c6fd: Added support for StreamableHttp in MCP Client

### Patch Changes

-   43a0745: Removed redundant call to this.listMCPTools(server) as we are now using a promises array to handle multiple servers concurrently

    Fixed conditional in MCP client initialization and moved this.\_mcpClients.push(client) to the beginning of listMCPTools method to prevent duplicate clients from being registered

</Release>

<Release version="@inngest/agent-kit@0.7.3" date="April 16, 2025" published="2025-04-16T08:00:33.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.7.3">
### Patch Changes

-   5e3e74f: Export types
-   5e3e74f: Export types from `index.ts`

</Release>

<Release version="@inngest/agent-kit@0.7.2" date="April 9, 2025" published="2025-04-09T08:35:54.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.7.2">
### Patch Changes

-   b983424: Add safety checks to openai response parser
-   bf01b2f: fix(gemini): do not send `tools` and `tool_config` if not tools are provided

</Release>

<Release version="@inngest/agent-kit@0.7.1" date="April 7, 2025" published="2025-04-07T10:08:42.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.7.1">
### Patch Changes

-   f630722: Optimize parallelism in `createServer()`, removing risk of parallel indexing

</Release>

<Release version="@inngest/agent-kit@0.7.0" date="March 21, 2025" published="2025-03-21T22:20:52.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.7.0">
### Minor Changes

-   a5f2fea: Refactor AgentResult, and allow conversational history + short term mem

</Release>

<Release version="@inngest/agent-kit@0.6.0" date="March 20, 2025" published="2025-03-20T17:29:02.000Z" url="https://github.com/inngest/agent-kit/releases/tag/%40inngest/agent-kit%400.6.0">
### Minor Changes

-   e32af3d: Implement typed state management

### Patch Changes

-   51a076c: Document typed state, re-add KV for backcompat
-   7eeadbd: fix(network): add back-compat for `defaultRouter`

</Release>

<Pagination page="1" total-pages="2" total-items="35" next="https://releases.sh/inngest/inngest-agent-kit.md?page=2" />
