{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "cocoyes-zhizhi-agent-runtime--run-planned-multistep-agent-demo",
 "repo": "cocoyes/zhizhi-agent-runtime",
 "repo_url": "https://github.com/cocoyes/zhizhi-agent-runtime",
 "repo_slug": "cocoyes-zhizhi-agent-runtime",
 "title": "Run a planned multi-step agent task with branches and tests",
 "page_title": "How to run a planned multi-step agent task with branches and tests with Zhizhi Agent Runtime",
 "summary": "Run the full agent example to see planning, conditional branches, and bindings execute end to end.",
 "who": "A Go developer evaluating whether the runtime can plan dependent steps and skip branches that do not match.",
 "problem": "Reading about dependency graphs and conditions is not enough. You want to see a complete complex-mode run that you can execute and test.",
 "outcome": "A working complex-mode run that prints a final answer, plus a passing test for the same example.",
 "steps": [
  "Clone https://github.com/cocoyes/zhizhi-agent-runtime and change into the repo directory.",
  "Set the provider settings:\n`export LLM_BASE_URL=\"https://your-provider.example/v1\"`\n`export LLM_API_KEY=\"your-api-key\"`\n`export LLM_MODEL=\"your-model\"`",
  "Run the complete workflow: `go run ./examples/10-full-agent`",
  "Run the tests for the same example: `go test ./examples/10-full-agent`",
  "Read the JSONL trace or the execution statistics in the response to confirm which steps ran and which were skipped."
 ],
 "agent_prompt": "Clone the zhizhi-agent-runtime repo and set LLM_BASE_URL, LLM_API_KEY, and LLM_MODEL for <your-provider>. Run `go run ./examples/10-full-agent` and report the final answer. Then run `go test ./examples/10-full-agent` and confirm it passes.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The runtime never fabricates model responses, so the example needs a real reachable model endpoint and key to produce output.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Go 1.25 or newer",
  "An OpenAI-compatible Chat Completions endpoint with a base URL, API key, and model name",
  "A clone of the repo or a Go module that imports github.com/cocoyes/zhizhi-agent-runtime"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cocoyes-zhizhi-agent-runtime/run-planned-multistep-agent-demo/",
 "md": "https://dedupedai.com/use-cases/cocoyes-zhizhi-agent-runtime/run-planned-multistep-agent-demo/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/cocoyes-zhizhi-agent-runtime--run-planned-multistep-agent-demo.json",
 "api_version": "v1"
}
