sdks/python/design/README.md
Comprehensive architecture documentation for contributors and team members. These guides explain how the SDK works internally, not how to use it.
| Document | Priority | Description |
|---|---|---|
| API and Data Flow | ⭐ Start Here | Core architecture, 3 layers, sync vs async operations, batching, message processing |
| Testing | 🔵 Essential | Test categories, fake backend, TraceModel/SpanModel patterns |
| Integrations | 🟣 As Needed | Integration patterns (method patching, callback, hybrid), streaming strategies |
| Evaluation | 🟣 As Needed | Evaluation engine, all 4 evaluation methods, metrics architecture |
| Task | Document | Key Sections |
|---|---|---|
Understanding @opik.track | API and Data Flow | Decorator Data Flow, Context Management |
| Adding integration | Integrations | Integration Patterns, existing integrations |
| Creating metric, evaluation pipelines | Evaluation | Metrics Architecture |
| Debugging performance | API and Data Flow | Batching System, Performance |
| Writing tests | Testing | Testing Patterns, fake backend |
Update documentation when:
Quality standards:
Last Updated: 2025-01-20
Questions? Open an issue or contact the SDK team.