Ax cpp agent observability

From ax-llm/ax · View interactive version

Ax cpp agent observability is an AI agent skill from the GitHub repository ax-llm/ax. Use when writing C++ code with `axllm` for agent tracing, centralized and multi-tenant usage accounting, action logs, runtime diagnostics, replay, and production debugging.

How to use this skill

Skill file

AxAgent Observability For C++

This skill helps an agent write C++ code with the generated Ax package axllm. Use the generated package API, examples, and manifests; do not import TypeScript-only APIs unless you are editing the TypeScript package.

When To Use

Package Facts

Core Pattern

auto helper = axllm::agent("question:string -> answer:string");
auto out = helper.forward(llm, { {"question", "How should I proceed?"} });

Centralized Usage Observer

Use the process-wide usage observer for application accounting across many agents, API routes, tenants, and users. Keep per-agent usage accessors for inspecting one agent instance after a run.

axllm::set_usage_observer(
    [&usage_queue](axllm::AxUsageEvent event) {
      usage_queue.push(std::move(event));
    });
// Later: axllm::set_usage_observer({});

Relevant API Surface

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.