examples/

directory
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT

Directories

Path Synopsis
Example: a2a_interop shows Chronos interoperating over the Agent-to-Agent (A2A) protocol (WC-B-001).
Example: a2a_interop shows Chronos interoperating over the Agent-to-Agent (A2A) protocol (WC-B-001).
Example: agui_stream shows Chronos runs surfaced as a standard AG-UI event stream (WC-B-003).
Example: agui_stream shows Chronos runs surfaced as a standard AG-UI event stream (WC-B-003).
Azure OpenAI example for Chronos.
Azure OpenAI example for Chronos.
Azure OpenAI RAG (retrieval-augmented generation) example for Chronos.
Azure OpenAI RAG (retrieval-augmented generation) example for Chronos.
Azure OpenAI tool-calling example for Chronos.
Azure OpenAI tool-calling example for Chronos.
Example: chat_with_tools demonstrates an agent that uses tools during chat.
Example: chat_with_tools demonstrates an agent that uses tools during chat.
Command custom_tool shows how to give a Chronos agent a CUSTOM tool with a real Go handler.
Command custom_tool shows how to give a Chronos agent a CUSTOM tool with a real Go handler.
Example: coding_agent — A full-featured autonomous coding agent.
Example: coding_agent — A full-featured autonomous coding agent.
Example: context_compaction demonstrates automatic context compaction (WC-A-004).
Example: context_compaction demonstrates automatic context compaction (WC-A-004).
Data residency example for Chronos.
Data residency example for Chronos.
Example: deep_agent demonstrates the batteries-included "deep agent" harness preset (WC-A-005).
Example: deep_agent demonstrates the batteries-included "deep agent" harness preset (WC-A-005).
Example: durable_hitl demonstrates a durable, human-in-the-loop (HITL) StateGraph.
Example: durable_hitl demonstrates a durable, human-in-the-loop (HITL) StateGraph.
Example: durable_llm_graph — where LLM calls happen, and how the StateGraph runtime makes them durable.
Example: durable_llm_graph — where LLM calls happen, and how the StateGraph runtime makes them durable.
Command durable_queue demonstrates the Chronos durable, distributed execution plane (engine/queue) delivered in Phase P1.
Command durable_queue demonstrates the Chronos durable, distributed execution plane (engine/queue) delivered in Phase P1.
Enterprise SSO example for Chronos.
Enterprise SSO example for Chronos.
Example: eval_loop demonstrates the eval-driven development loop (WC-C-001): capture a dataset from a real run, run it against an agent target, score it, and gate on regressions — the trace → dataset → eval → gate cycle.
Example: eval_loop demonstrates the eval-driven development loop (WC-C-001): capture a dataset from a real run, run it against an agent target, score it, and gate on regressions — the trace → dataset → eval → gate cycle.
Example: fallback_provider demonstrates automatic failover between model providers.
Example: fallback_provider demonstrates automatic failover between model providers.
Example: graph_patterns demonstrates the StateGraph durable execution engine.
Example: graph_patterns demonstrates the StateGraph durable execution engine.
Example: graph_with_llm — StateGraph with real LLM calls inside nodes.
Example: graph_with_llm — StateGraph with real LLM calls inside nodes.
Example: hooks_observability demonstrates all Chronos hooks for production observability.
Example: hooks_observability demonstrates all Chronos hooks for production observability.
internal
exampletest
Package exampletest provides helpers for tests under examples/.
Package exampletest provides helpers for tests under examples/.
providers
Package providers is a shared helper used by the runnable examples to pick an LLM provider from the environment.
Package providers is a shared helper used by the runnable examples to pick an LLM provider from the environment.
Example: k8s_sandbox runs an untrusted command as a one-shot Kubernetes Job using the K8s sandbox backend.
Example: k8s_sandbox runs an untrusted command as a one-shot Kubernetes Job using the K8s sandbox backend.
Example: mcp_agent demonstrates connecting an agent to a Model Context Protocol (MCP) server and importing its tools into the agent's registry.
Example: mcp_agent demonstrates connecting an agent to a Model Context Protocol (MCP) server and importing its tools into the agent's registry.
Example: mcp_server exposes Chronos tools to any MCP host (Claude Desktop, an IDE, another agent framework) over stdio (WC-B-002).
Example: mcp_server exposes Chronos tools to any MCP host (Claude Desktop, an IDE, another agent framework) over stdio (WC-B-002).
Example: mcp_sse connects an MCP client to a server over the HTTP+SSE transport (MCP 2024-11-05).
Example: mcp_sse connects an MCP client to a server over the HTTP+SSE transport (MCP 2024-11-05).
Example: memory_and_sessions demonstrates persistent multi-turn sessions and the memory system (short-term + long-term).
Example: memory_and_sessions demonstrates persistent multi-turn sessions and the memory system (short-term + long-term).
Example: multi_agent demonstrates all four team strategies and agent communication.
Example: multi_agent demonstrates all four team strategies and agent communication.
Example: multi_provider demonstrates connecting agents to different LLM providers.
Example: multi_provider demonstrates connecting agents to different LLM providers.
Example: multi_round_tools demonstrates an agent performing MULTIPLE sequential tool-calling rounds, where the result of tool A feeds the arguments of tool B.
Example: multi_round_tools demonstrates an agent performing MULTIPLE sequential tool-calling rounds, where the result of tool A feeds the arguments of tool B.
Example: multitenancy demonstrates storage-level tenant isolation using storage.WithTenant.
Example: multitenancy demonstrates storage-level tenant isolation using storage.WithTenant.
Example: multitenant_memory demonstrates per-user long-term memory isolation — two different users served by one logical agent, whose memories never leak across tenants.
Example: multitenant_memory demonstrates per-user long-term memory isolation — two different users served by one logical agent, whose memories never leak across tenants.
Example: planning_agent demonstrates the built-in planning ("todo") tool (WC-A-001).
Example: planning_agent demonstrates the built-in planning ("todo") tool (WC-A-001).
Chronos Quickstart — a minimal agent with SQLite storage and a durable StateGraph.
Chronos Quickstart — a minimal agent with SQLite storage and a durable StateGraph.
Example: rag_knowledge — Retrieval-Augmented Generation with the Knowledge API.
Example: rag_knowledge — Retrieval-Augmented Generation with the Knowledge API.
Example: sandbox_execution demonstrates the process sandbox for running untrusted commands with timeouts and output capture.
Example: sandbox_execution demonstrates the process sandbox for running untrusted commands with timeouts and output capture.
Example: semantic_recall — automatic semantic long-term recall (WC-D-001).
Example: semantic_recall — automatic semantic long-term recall (WC-D-001).
Example: server_embedded — running the ChronosOS control plane as a library.
Example: server_embedded — running the ChronosOS control plane as a library.
Example: skills — registering, listing, and resolving skills.
Example: skills — registering, listing, and resolving skills.
Example: streaming_sse demonstrates the event streaming broker for real-time observability.
Example: streaming_sse demonstrates the event streaming broker for real-time observability.
Example: structured_output — asking an LLM for strict JSON and decoding it.
Example: structured_output — asking an LLM for strict JSON and decoding it.
Example: subagents demonstrates context-isolated delegation (WC-A-003).
Example: subagents demonstrates context-isolated delegation (WC-A-003).
Example: team_deploy — Deploy multi-agent teams from YAML with sandbox isolation.
Example: team_deploy — Deploy multi-agent teams from YAML with sandbox isolation.
Example: tools_and_guardrails demonstrates the tool registry with permission levels and guardrail engine for input/output validation.
Example: tools_and_guardrails demonstrates the tool registry with permission levels and guardrail engine for input/output validation.
Google Cloud Vertex AI example for Chronos.
Google Cloud Vertex AI example for Chronos.
Example: vfs_agent demonstrates the virtual filesystem for context offloading (WC-A-002).
Example: vfs_agent demonstrates the virtual filesystem for context offloading (WC-A-002).
Example: wasm_sandbox runs an untrusted WebAssembly (WASI) module inside the pure-Go wazero-backed sandbox.
Example: wasm_sandbox runs an untrusted WebAssembly (WASI) module inside the pure-Go wazero-backed sandbox.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL