Opik SDK Reference Opik is an open-source LLM observability platform. This skill is a reference for the SDK. To instrument a codebase step by step (detect frameworks, add config, emit and verify a trace), use the task-shaped skill. Core concepts A trace is one execution path (one request → one response). Spans are the operations inside it and form a hierarchy. Span types — the ONLY valid values | Type | Use for | |------|---------| | | orchestration, agent entry points | | | model calls | | | tools, retrieval, API / DB calls | | | safety / validation checks | Do NOT use or any other value. Py…