Kneo Agent Platform examples¶
Runnable spec files and supporting Python helpers for kneo-serv.
Use them to validate a local install, exercise the CLI, or as
starting points for your own specs.
For the annotated walkthrough — exact kneo spec / kneo run
commands, expected output, caveats — see
docs/user/examples.md.
Reading order¶
If you're new, work through these specs in order. Each one builds on concepts the previous one introduces.
research_agent.yaml— single-agent research pipeline with a plan-act strategy, two tools, and a sequential workflow. The simplest end-to-end example. Three environment overlays (research_agent.dev.yaml,research_agent.staging.yaml,research_agent.prod.yaml) demonstrate the overlay system.graph_review_workflow.yaml— graph workflow with conditional edges (retrieve → analyze → review → revise/finalize). Adds graph shape and conditional routing on top of the basic sequential pattern.concurrent_review_workflow.yaml— concurrent workflow where three reviewers (security, accessibility, performance) run against the same input in parallel and the platform collects their responses. Adds fan-out / fan-in to your mental model.group_chat_workflow.yaml— group-chat workflow where a proponent, skeptic, and pragmatist debate a proposal over two rounds. Adds multi-agent conversation withrounds: Nand ordered participant declaration.human_approval_workflow.yaml— sequential workflow with a human-in-the-loop step between draft and publish. Adds the pause/resume continuation API.smoke_human_workflow.yaml— minimal human-in-the-loop spec that uses thedummyprovider. Useful for deployment smoke tests that exercise the pause/resume path without a real LLM.
Reference (not a spec to run)¶
project_config.yaml— example.kneo/config.yamlshowing per-environment overlays and policy enforcement. Project-level config thatkneoreads when pointed at a project directory.
Supporting Python helpers¶
app_functions.py— function references forresearch_agent.yaml(compress_history,web_search,webpage_reader,summarize). Stub implementations meant to be replaced with real ones in your own spec.human_functions.py— function references forhuman_approval_workflow.yaml(draft_report,publish_report). Also stubs.
Caveats¶
- These specs are non-production placeholders. The
provider/modelfields point at common defaults (openai/gpt-4o,openai/gpt-4o-mini) and should be retargeted before any real use. - The Python helpers return placeholder strings — replace with real implementations before running against production tooling.
Files¶
project_config.yamlresearch_agent.yamlresearch_agent.dev.yamlresearch_agent.staging.yamlresearch_agent.prod.yamlgraph_review_workflow.yamlconcurrent_review_workflow.yamlgroup_chat_workflow.yamlhuman_approval_workflow.yamlsmoke_human_workflow.yamlrun_with_timeout.pyapp_functions.pyhuman_functions.py