Skip to content
Konstera
Docs · Reference
Konstera documentation.

Getting started, SDK quickstart, manifest reference, kernel MCP services, deploy guide and FAQ — everything you need to build and run agents on Konstera.

Manifest schema (full)

The complete agent-manifest.v3.json JSON Schema, inlined. Every field, every type, every allowed value, every default. An LLM reading only this page can produce a valid manifest without consulting the repo.

For a higher-level overview with examples, see Manifest reference.

At a glance#

Every top-level key, what it decides about your agent, and where it's documented below.

KeyRequiredWhat it decidesJump to
$schema, id, version, name, inputyesSchema version, identity, accepted payloadRequired fields
runtimeyesHow the kernel executes the agentruntime
autonomyyesDecision policy at result timeautonomy
capabilities.needs[]—Canonical capabilities the operator must or may bindcapabilities.needs[]
contextRequirements—Glossary terms, skills and ontology entities the agent readscontextRequirements
eval—Scenarios the kernel runs on upload, nightly and on demandeval
output, config—Declared return shape; tenant-set instance configinput / output / config
schedules—Cron-triggered invocationsschedules[]
webhooks—HMAC-verified inbound triggerswebhooks[]
retryPolicy—Exponential backoff on failureretryPolicy
llmRequirements—LLM purposes, rendered as per-instance "LLM bindings"llmRequirements[]
description, icon, license, groupName, author, resources—Catalog metadata and resource limitsTop-level

Schema source of truth#

  • Current version: v3.1
  • Repo: schemas/agent-manifest.v3.json on github.com/Konstera/sdk
  • Platform validates on upload. Validation errors use the [VAL-*] codes documented in Error catalog.

Top-level#

JSON
{
  "$schema": "https://schemas.konstera.ai/agent-manifest.v3.json",
  "id": "io.konstera.my-agent",
  "version": "0.1.0",
  "name": "My Agent",
  "description": "What this agent does.",
  "icon": "🎧",
  "license": "MIT",
  "groupName": "Customer Success",
  "author": { "name": "Konstera", "email": "hello@konstera.example" },
  "runtime": { "kind": "container", "image": "ghcr.io/you/my-agent:0.1.0", "port": 8080, "healthPath": "/health" },
  "llmRequirements": [...],
  "capabilities": { "needs": [...] },
  "contextRequirements": { "glossary": [...], "skills": [...], "ontologyEntities": [...] },
  "eval": { "endpoint": "/eval", "scenarios": [...] },
  "autonomy": "autonomous",
  "input": { "type": "object", "properties": {...} },
  "output": { "type": "object", "properties": {...} },
  "schedules": [...],
  "webhooks": [...],
  "config": { "type": "object", "properties": {...} },
  "retryPolicy": { "maxAttempts": 3, "backoffSeconds": 10 },
  "resources": { "memoryMi": 512, "cpuMillis": 500, "timeoutSeconds": 240 }
}

Required fields#

FieldTypeConstraintsNotes
$schemastringURL to the schema versionDetermines which validation rules apply. v3 = https://schemas.konstera.ai/agent-manifest.v3.json
idstring^[a-z0-9][a-z0-9.\-]*[a-z0-9]$, 3-120 charsGlobally unique within tenant. Convention: io.konstera.<name> or reverse-DNS.
versionstringSemver 2.0Immutable per upload. New version = new upload.
namestring1-120 charsShown in catalog + inbox.
runtimeobjectSee runtime block belowHow the kernel executes the agent.
inputJSON SchemaValid draft-07 schemaAccepted invocation payload shape.
autonomyenumSee autonomy blockDecision policy at result time.

runtime#

Three variants (kind discriminator):

runtime.kind = "container" (default)#

JSON
"runtime": {
  "kind": "container",
  "image": "ghcr.io/you/my-agent:0.1.0",
  "port": 8080,
  "healthPath": "/health",
  "timeoutSeconds": 240,
  "memoryMi": 512,
  "cpuMillis": 500,
  "env": { "FOO": "bar" },
  "command": ["python", "-u", "main.py"]
}
FieldTypeDefaultNotes
kind"container"required—
imagestringrequiredOCI image reference. Public or in a registry the kernel can pull from.
portinteger8080Container's HTTP listen port. Kernel maps internally.
healthPathstring/healthLiveness check endpoint.
timeoutSecondsinteger60Max duration for one handle() call. See [KERN-004] in errors.
memoryMiinteger256Memory limit in MiB. See [KERN-005].
cpuMillisinteger500CPU limit in millicores. 1000 = 1 vCPU.
envobject{}Extra env vars to inject into the container. The kernel ALWAYS injects the KONSTERA_* set — see env-vars.
commandstring[]from imageContainer entrypoint override.

runtime.kind = "mcp-stdio" (local dev)#

JSON
"runtime": {
  "kind": "mcp-stdio",
  "command": "python",
  "args": ["-u", "main.py"]
}

Launches an MCP process over stdio. Local-dev shortcut — not used in production.

runtime.kind = "mcp-http" (dev + integration tests)#

JSON
"runtime": {
  "kind": "mcp-http",
  "url": "http://my-agent.local:8080",
  "auth": { "kind": "bearer", "token": "..." }
}

Agent runs anywhere reachable by HTTP. Used for integration tests where you want to run the agent in your IDE's debugger.

autonomy#

Enum with three values. Scope-stacked — the tenant admin can override the manifest-declared autonomy at deploy time without redeploying.

ValueMeaning
autonomousHandler result applied directly. Still logged for audit + replay.
require_reviewHandler result lands in the reviewer inbox. Reviewer picks send / edit / redraft / reject.
require_approvalStronger: approval must come from a named reviewer role (configurable per binding).

For tier-based autonomy (small → autonomous, large → approval), don't encode in the manifest — use autonomy bindings at deploy time.

capabilities.needs[] (v3)#

Each entry is an object:

JSON
"capabilities": {
  "needs": [
    {
      "name": "orders.lookup_by_email",
      "required": false,
      "reason": "Retail installs bind this to cite order status in replies"
    }
  ]
}
FieldTypeRequiredNotes
namestringyesCanonical capability name from the catalogue. Install validates — see [VAL-002].
requiredbooleanno (default false)true = install fails if operator doesn't bind this. Agent is guaranteed ctx.capability.call() succeeds. false = optional; agent must available() first.
reasonstringnoShown in the portal binding UI. Explains why the agent needs it.

contextRequirements (v3.1 — Context Service, ADR-037)#

JSON
"contextRequirements": {
  "glossary": [
    { "term": "refund_window_days", "required": false }
  ],
  "skills": [
    { "name": "evaluate_refund_eligibility", "required": true }
  ],
  "ontologyEntities": [
    { "entity": "customer", "required": true },
    { "entity": "order", "required": false }
  ]
}
SectionFieldRequiredNotes
glossary[]term, required—Glossary term the agent references. Install validates term exists in tenant Context Service.
skills[]name, required—Skill the agent runs via ctx.semantic.skills_get(). Install validates skill is active.
ontologyEntities[]entity, required—Ontology entity the agent reads via ctx.semantic.ontology_lookup().

Omit the whole block if the agent doesn't use Context Service.

eval (v3.1 — ADR-044)#

Evaluation contract — the kernel runs scenarios against the agent on upload + nightly + on-demand.

JSON
"eval": {
  "endpoint": "/eval",
  "timeout_seconds": 60,
  "scenarios": [
    {
      "id": "refund-eligible-vip",
      "cluster_tag": "refund-eligible",
      "input": {...},
      "expected": {...}
    }
  ]
}
FieldTypeRequiredNotes
endpointstringno (default /eval)HTTP path the kernel POSTs scenario inputs to.
timeout_secondsintegerno (default 60)Per-scenario timeout.
scenarios[]object[]—Inline scenarios. Each has id, optional cluster_tag, input, expected. Full shape per ADR-044.

input / output / config (JSON Schema)#

Standard JSON Schema draft-07. Example:

JSON
"input": {
  "type": "object",
  "required": ["ticket_id"],
  "properties": {
    "ticket_id": {
      "type": "string",
      "pattern": "^[A-Z0-9\\-]+$",
      "description": "The ticket to triage."
    },
    "priority_hint": {
      "type": "string",
      "enum": ["low", "normal", "high"],
      "default": "normal"
    }
  }
}

output is validated at response time if present. config is instance-level tenant-set config visible at req.config.

Operators set config values per instance on the agent's Configuration tab, which is generated from your schema — defaults, ranges and descriptions included:

Agent → Configuration: settings rendered from the agent's config schema, with per-instance overrides · example data

schedules[]#

JSON
"schedules": [
  {
    "name": "every-hour",
    "cron": "0 * * * *",
    "timezone": "UTC",
    "input": { "mode": "poll" }
  }
]

Standard cron (5-field). Timezone follows IANA names. input is the AgentRequest.payload for scheduled invocations.

webhooks[]#

JSON
"webhooks": [
  {
    "name": "stripe-events",
    "path": "/webhooks/stripe-events",
    "hmac_secret_credential": "stripe-webhook-secret",
    "signature_header": "Stripe-Signature"
  }
]
FieldRequiredNotes
nameyesLogical name shown in the portal.
pathyesPublic path. Kernel exposes at https://api.konstera.ai/wh/<tenant>/<path>.
hmac_secret_credentialnoCredential key for the HMAC secret. Omit for unauthenticated webhooks (not recommended).
signature_headernoName of the header carrying the HMAC signature. Default varies by vendor.

retryPolicy#

JSON
"retryPolicy": {
  "maxAttempts": 3,
  "backoffSeconds": 10,
  "backoffMultiplier": 2.0,
  "maxBackoffSeconds": 300
}

Standard exponential backoff. Platform defaults are usually fine — omit the whole block to inherit them.

llmRequirements[]#

Declares which LLM purposes the agent uses. The portal uses this to render the "LLM bindings" page per instance.

JSON
"llmRequirements": [
  {
    "purpose": "drafter",
    "suggestedModel": "claude-haiku-4-5-20251001",
    "maxTokens": 2048,
    "description": "Drafts a human-tone reply to the customer."
  }
]

Agent must await ctx.llm.complete(purpose="drafter", ...) to use the binding.

See also#