> ## Documentation Index
> Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.

# Code Examples

> Explore code examples showing LangWatch integrations for tracing, evaluating, and improving AI agent testing pipelines.

Below are some examples for integrating LangWatch into your project.

> [tab] Python
>
> > [card] [Azure OpenAI Streaming Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/azure_openai_stream_bot.py)
>
> > [card] [Custom Evaluation Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/custom_evaluation_bot.py)
>
> > [card] [DSPy Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/dspy_bot.py)
>
> > [card] [DSPy Visualization](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/dspy_visualization.ipynb)
>
> > [card] [Evaluation Manual Call](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/evaluation_manual_call.py)
>
> > [card] [FastAPI App](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/fastapi_app.py)
>
> > [card] [Generic Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot.py)
>
> > [card] [Generic Bot Exception](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_exception.py)
>
> > [card] [Generic Bot RAG](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_rag.py)
>
> > [card] [Generic Bot RAG Expected Output](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_rag_expected_output.py)
>
> > [card] [Generic Bot Span Context Manager](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_span_context_manager.py)
>
> > [card] [Generic Bot Span Low Level](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_span_low_level.py)
>
> > [card] [Generic Bot Sync Function](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_sync_function.py)
>
> > [card] [Generic Bot Update Metadata Later](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/generic_bot_update_metadata_later.py)
>
> > [card] [Guardrails](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/guardrails.py)
>
> > [card] [Guardrails Parallel](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/guardrails_parallel.py)
>
> > [card] [Guardrails Without Tracing](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/guardrails_without_tracing.py)
>
> > [card] [LangChain Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/langchain_bot.py)
>
> > [card] [LangChain RAG Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/langchain_rag_bot.py)
>
> > [card] [LangChain RAG Bot Vertex AI](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/langchain_rag_bot_vertex_ai.py)
>
> > [card] [LiteLLM Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/litellm_bot.py)
>
> > [card] [OpenAI Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/openai_bot.py)
>
> > [card] [OpenAI Bot Function Call](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/openai_bot_function_call.py)
>
> > [card] [OpenAI Bot RAG](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/openai_bot_rag.py)
>
> > [card] [Weaviate DSPy Visualization](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/weaviate_dspy_visualization.ipynb)
>
> > [card] [Streamlit OpenAI Assistants API Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/streamlit_openai_assistants_api_bot.py)

> [tab] TypeScript
>
> > [card] [LangGraph Chatbot](https://github.com/langwatch/langwatch/blob/main/sdks/typescript/examples/langgraph)
>
> > [card] [LangChain Bot](https://github.com/langwatch/langwatch/blob/main/sdks/typescript/examples/langchain)
>
> > [card] [Mastra Weather Agent](https://github.com/langwatch/langwatch/blob/main/sdks/typescript/examples/mastra)
>
> > [card] [Prompt CLI](https://github.com/langwatch/langwatch/blob/main/sdks/typescript/examples/prompt-cli)
>
> > [card] [Vercel AI SDK Chatbot](https://github.com/langwatch/langwatch/blob/main/sdks/typescript/examples/vercel-ai)

> [tab] Go
>
> > [card] [OpenAI Simple](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/openai-simple)
>
> > [card] [OpenAI Streaming](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/openai-streaming)
>
> > [card] [OpenAI Threads](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/openai-threads)
>
> > [card] [OpenAI Responses](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/openai-responses)
>
> > [card] [OpenAI Filtered](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/openai-filtered)
>
> > [card] [Custom Input/Output](https://github.com/langwatch/langwatch/tree/main/sdks/go/e2e/custom-input-output)
>
> > [card] [Span Filtering](https://github.com/langwatch/langwatch/tree/main/sdks/go/examples/filtering)

> [tab] OpenTelemetry
>
> > [card] [OpenInference DSPy Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openinference_dspy_bot.py)
>
> > [card] [OpenInference Haystack](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openinference_haystack.py)
>
> > [card] [OpenInference LangChain Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openinference_langchain_bot.py)
>
> > [card] [OpenInference OpenAI Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openinference_openai_bot.py)
>
> > [card] [OpenTelemetry Anthropic Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openllmetry_anthropic_bot.py)
>
> > [card] [OpenTelemetry LangChain Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openllmetry_langchain_bot.py)
>
> > [card] [OpenTelemetry OpenAI Bot](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/openllmetry_openai_bot.py)
>
> > [card] [Traditional Instrumentation FastAPI App](https://github.com/langwatch/langwatch/blob/main/sdks/python/examples/opentelemetry/traditional_instrumentation_fastapi_app.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.