Skip to main content
Use this page after the Python quickstart, proxy helpers, and runtime events are already clear.

Quickstart

Install the package, initialize the agent, and make the first proxied model call.

Proxy Helpers

Review the key flow and patched-client behavior.

Runtime Events

Review the event methods before composing hybrid flows.

Hybrid tracing

Prompt caching-aware usage

Use cacheReadTokens for tokens served from cache and cacheCreationTokens for tokens written into cache when your runtime exposes those values.

Self-hosted overrides

Event IDs you should understand

Common mistakes

  • Calling trace() methods without stable trace_id values across the same workflow.
  • Mixing manual llm_response() events with proxied model responses for the same model turn when you only wanted one representation.
  • Forgetting to reuse span_id across tool request and response events.
  • Overriding URLs request-by-request instead of setting proxy_base_url and analyse_base_url once on the WhyOps client.