AgentsKit API
    Preparing search index...

    Module @agentskit/core

    @agentskit/core

    The zero-dependency foundation that every AgentsKit package builds on.

    • Start without baggage — no external deps means it installs fast, audits clean, and works in any environment (Node, Deno, edge, browser)
    • Build your own framework — all shared primitives, type contracts, and the chat state machine are here, ready to compose
    • Types without the weight — import ToolDefinition, SkillDefinition, AgentEvent, and more without pulling in React or any adapter
    npm install @agentskit/core
    
    import { createChatController, createInMemoryMemory } from '@agentskit/core'
    import { anthropic } from '@agentskit/adapters'

    const controller = createChatController({
    adapter: anthropic({ apiKey: process.env.ANTHROPIC_API_KEY, model: 'claude-sonnet-4-6' }),
    memory: createInMemoryMemory(),
    })

    await controller.send('Hello!')
    console.log(controller.getState().messages)
    Package Role
    @agentskit/adapters LLM chat + embedding providers
    @agentskit/runtime createRuntime — agents without UI
    @agentskit/react useChat, headless chat components
    @agentskit/tools Executable tools

    Full documentation