Skip to content
Konstera
Docs · Cookbook
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.

Cookbook

Recipe-style examples for common agent patterns. Each recipe shows the three files (main.py, manifest.json, Dockerfile) plus the key ideas and pitfalls. Copy, adapt, deploy.

FlowHow to use a recipe Interactive — click a block

Recipes#

Which recipe do I need?#

If your agent needs to…Start withKey kernel services
Answer questions from your own documents or policies, without inventing factsRAG agentctx.vector, ctx.llm
Take a customer-visible action only after a person signs offHuman-in-the-loop agentctx.human, ctx.capability
Run on its own every hour / day / cron expression and pick up where it left offScheduled cron agentschedules[], ctx.state

More recipes (planned)#

The cookbook is growing. These land in subsequent releases:

RecipePattern
Webhook-triggered agentwebhooks[] with HMAC verification + handler consuming the webhook payload.
Multi-agent orchestrationOne agent invokes another via ctx.agents.invoke() as a child workflow.
Connector-backed agentAgent reads from ctx.connector.list() grants, calls ctx.connector.call().
Stateful agentAgent uses ctx.state across invocations to maintain cursor positions, caches, drafted-not-sent artifacts.
Eval-driven developmentManifest eval.scenarios[] + harness pattern.
Context-portal skill-consuming agentAgent calls ctx.semantic.skills_get() to run a tenant-authored playbook.

Pattern conventions used across all recipes#

Every recipe follows the same habits — copy them into your own agents.

Conventions in every recipe
  • Python-first — recipes are Python. .NET versions are tracked separately in the SDK reference.
  • async def handle(req, ctx) — every recipe's entry point.
  • await ctx.log.info("start", ...) at the top of handle(), await ctx.log.info("done", ...) at the end — minimum observability for debuggable invocations.
  • Guard optional capabilities with await ctx.capability.available(name) before calling.
  • Prefer purpose= over model= for LLM calls so admins can rebind without a redeploy.
  • Never log secrets — ctx.credentials.get() returns one; don't echo in logs.

See also#