> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/6.-build-wire-your-code.md).

# 6. Build — wire your code

- [Build (workflow)](https://docs.layerlens.ai/6.-build-wire-your-code/workflow.md): Stage 2 — Build. Wire your code or agent to emit traces Stratix can ingest, and develop with evaluation-driven feedback from the start.
- [SDK](https://docs.layerlens.ai/6.-build-wire-your-code/sdk.md)
- [Python SDK — quickstart](https://docs.layerlens.ai/6.-build-wire-your-code/quickstart.md): SDK quickstart — install, authenticate, run an eval.
- [Python SDK — install](https://docs.layerlens.ai/6.-build-wire-your-code/installation.md): Stratix Python SDK installation.
- [Python SDK — auto-instrumentation](https://docs.layerlens.ai/6.-build-wire-your-code/sdk-python.md): Stratix Python SDK reference — Stratix, AsyncStratix, complete resource surface, errors.
- [Concepts](https://docs.layerlens.ai/6.-build-wire-your-code/concepts.md)
- [Traces and spans](https://docs.layerlens.ai/6.-build-wire-your-code/traces-and-spans.md): Traces and spans in Stratix — the unit of "what did my AI actually do."
- [Async vs sync workflow](https://docs.layerlens.ai/6.-build-wire-your-code/async-vs-sync-workflow.md): Async vs sync workflow in Stratix — when work is queued, when it's immediate, what to expect.
- [Streaming](https://docs.layerlens.ai/6.-build-wire-your-code/streaming.md): Streaming evaluation results and trace progress — SSE and WebSocket patterns.
- [Cookbook](https://docs.layerlens.ai/6.-build-wire-your-code/cookbook.md)
- [Instrument LangChain](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-langchain.md): Recipe — instrument LangChain. Pointer to the SDK langchain\_instrumented sample.
- [Instrument LlamaIndex](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-llamaindex.md): Recipe — instrument a LlamaIndex pipeline. SDK adapter + manual trace upload patterns.
- [Instrument Haystack](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-haystack.md): Recipe — instrument a Haystack pipeline using manual trace upload.
- [Instrument OpenAI Assistants](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-openai-assistants.md): Recipe — instrument OpenAI / Assistants. Pointer to the SDK samples.
- [Instrument Anthropic SDK](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-anthropic-sdk.md): Recipe — instrument the Anthropic SDK. Pointer to the canonical SDK samples.
- [Instrument Vercel AI SDK](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-vercel-ai-sdk.md): Recipe — instrument a Vercel AI SDK call to emit traces (via REST).
- [Instrument custom Python](https://docs.layerlens.ai/6.-build-wire-your-code/instrument-custom-python.md): Recipe — instrument a custom Python pipeline using @trace and span().
- [OpenTelemetry trace ingestion](https://docs.layerlens.ai/6.-build-wire-your-code/otel-trace-ingestion.md): Recipe — OpenTelemetry trace ingestion. Pointer to the canonical SDK adapter doc.
- [Containerized CI](https://docs.layerlens.ai/6.-build-wire-your-code/containerized-ci.md): Recipe — containerized CI evaluation with a minimal Dockerfile.
- [Pre-release readiness](https://docs.layerlens.ai/6.-build-wire-your-code/prerelease-readiness.md): Recipe — pre-release readiness evaluation gate.
- [Slack notifications](https://docs.layerlens.ai/6.-build-wire-your-code/integration-slack.md): Recipe — route Stratix evaluation results into a Slack channel by polling and forwarding.
- [PagerDuty escalation](https://docs.layerlens.ai/6.-build-wire-your-code/integration-pagerduty.md): Recipe — escalate critical evaluation regressions to PagerDuty by polling and forwarding.
- [GitHub Actions](https://docs.layerlens.ai/6.-build-wire-your-code/integration-github-actions.md): Recipe — GitHub Actions evaluation gate. Pointer to the SDK's drop-in workflow file.
- [GitLab CI](https://docs.layerlens.ai/6.-build-wire-your-code/integration-gitlab-ci.md): Recipe — GitLab CI evaluation gate.
- [Buildkite](https://docs.layerlens.ai/6.-build-wire-your-code/integration-buildkite.md): Recipe — Buildkite evaluation gate.
- [Jenkins](https://docs.layerlens.ai/6.-build-wire-your-code/integration-jenkins.md): Recipe — Jenkins evaluation gate.
- [CI/CD tutorial](https://docs.layerlens.ai/6.-build-wire-your-code/ci-cd-tutorial.md)
- [Tutorial 3: Wire CI/CD quality gates](https://docs.layerlens.ai/6.-build-wire-your-code/03-cicd-gates.md): Tutorial 3 — Wire Stratix evaluations into GitHub Actions to gate AI changes.
- [CI/CD integrations](https://docs.layerlens.ai/6.-build-wire-your-code/ci-cd-integrations.md)
- [GitHub Actions integration](https://docs.layerlens.ai/6.-build-wire-your-code/cicd-github-actions.md): GitHub Actions CI gate.
- [GitLab CI integration](https://docs.layerlens.ai/6.-build-wire-your-code/cicd-gitlab.md): GitLab CI gate.
- [Buildkite integration](https://docs.layerlens.ai/6.-build-wire-your-code/cicd-buildkite.md): Buildkite CI gate.
- [Surfaces](https://docs.layerlens.ai/6.-build-wire-your-code/surfaces.md)
- [VS Code extension](https://docs.layerlens.ai/6.-build-wire-your-code/vscode-extension.md): The Stratix VS Code extension — run evaluations and inspect results from your editor.
- [Slack app](https://docs.layerlens.ai/6.-build-wire-your-code/slack.md): The Stratix Slack app — notifications and quick actions in your workspace.
- [Migration from another tool](https://docs.layerlens.ai/6.-build-wire-your-code/migration-from-another-tool.md)
- [Migration overview](https://docs.layerlens.ai/6.-build-wire-your-code/migration.md): Migrate to Stratix from another evaluation tool.
- [From LangSmith](https://docs.layerlens.ai/6.-build-wire-your-code/from-langsmith.md): Migrate from LangSmith to Stratix — concept mapping, what to port, what to re-author, and a phased cutover plan.
- [From Braintrust](https://docs.layerlens.ai/6.-build-wire-your-code/from-braintrust.md): Migrate from Braintrust to Stratix.
- [From Galileo](https://docs.layerlens.ai/6.-build-wire-your-code/from-galileo.md): Migrate from Galileo to Stratix.
- [From Promptfoo](https://docs.layerlens.ai/6.-build-wire-your-code/from-promptfoo.md): Migrate from Promptfoo to Stratix.
- [From MLflow](https://docs.layerlens.ai/6.-build-wire-your-code/from-mlflow.md): Migrate from MLflow to Stratix.
- [From Arize](https://docs.layerlens.ai/6.-build-wire-your-code/from-arize.md): Migrate from Arize AI to Stratix — concept mapping, what to port, what to re-author, and a phased cutover plan.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.layerlens.ai/6.-build-wire-your-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
