agentskit.js
Open specs

AgentSchema

Typed, validated definition of an agent — adapter, tools, skills, memory, rag, observers.

Subpath: @agentskit/core/agent-schema.

Shape

{
  "name": "support-bot",
  "adapter": { "kind": "openai", "model": "gpt-4o" },
  "tools": ["webSearch", "github"],
  "skills": ["triage", "summarizer"],
  "memory": { "kind": "sqlite", "path": ".agentskit/chat.db" },
  "rag": { "kind": "file-vector", "path": ".agentskit/vec.json", "dim": 1536 },
  "observers": [{ "kind": "costGuard", "maxUsd": 0.5 }]
}

Validation

import { parseAgentSchema, buildRuntime } from '@agentskit/core/agent-schema'

const schema = parseAgentSchema(json) // throws on invalid
const runtime = await buildRuntime(schema)

CLI

agentskit ai emits this shape. See CLI → ai.

Generative UI

Render the full agent as a form; edit live. See Generative UI.

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page