> ## 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.

# 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.

<Tabs>
  <Tab title="Python">
    <CardGroup cols={3}>
      <Card title="Azure OpenAI Streaming Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/azure_openai_stream_bot.py" />

      <Card title="Custom Evaluation Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/custom_evaluation_bot.py" />

      <Card title="DSPy Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/dspy_bot.py" />

      <Card title="DSPy Visualization" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/dspy_visualization.ipynb" />

      <Card title="Evaluation Manual Call" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/evaluation_manual_call.py" />

      <Card title="FastAPI App" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/fastapi_app.py" />

      <Card title="Generic Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot.py" />

      <Card title="Generic Bot Exception" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_exception.py" />

      <Card title="Generic Bot RAG" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_rag.py" />

      <Card title="Generic Bot RAG Expected Output" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_rag_expected_output.py" />

      <Card title="Generic Bot Span Context Manager" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_span_context_manager.py" />

      <Card title="Generic Bot Span Low Level" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_span_low_level.py" />

      <Card title="Generic Bot Sync Function" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_sync_function.py" />

      <Card title="Generic Bot Update Metadata Later" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/generic_bot_update_metadata_later.py" />

      <Card title="Guardrails" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/guardrails.py" />

      <Card title="Guardrails Parallel" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/guardrails_parallel.py" />

      <Card title="Guardrails Without Tracing" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/guardrails_without_tracing.py" />

      <Card title="LangChain Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/langchain_bot.py" />

      <Card title="LangChain RAG Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/langchain_rag_bot.py" />

      <Card title="LangChain RAG Bot Vertex AI" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/langchain_rag_bot_vertex_ai.py" />

      <Card title="LiteLLM Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/litellm_bot.py" />

      <Card title="OpenAI Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/openai_bot.py" />

      <Card title="OpenAI Bot Function Call" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/openai_bot_function_call.py" />

      <Card title="OpenAI Bot RAG" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/openai_bot_rag.py" />

      <Card title="Weaviate DSPy Visualization" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/weaviate_dspy_visualization.ipynb" />

      <Card title="Streamlit OpenAI Assistants API Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/streamlit_openai_assistants_api_bot.py" />
    </CardGroup>
  </Tab>

  <Tab title="TypeScript">
    <CardGroup cols={3}>
      <Card title="LangGraph Chatbot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/typescript-sdk/examples/langgraph" />

      <Card title="LangChain Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/typescript-sdk/examples/langchain" />

      <Card title="Mastra Weather Agent" icon="link" href="https://github.com/langwatch/langwatch/blob/main/typescript-sdk/examples/mastra" />

      <Card title="Prompt CLI" icon="link" href="https://github.com/langwatch/langwatch/blob/main/typescript-sdk/examples/prompt-cli" />

      <Card title="Vercel AI SDK Chatbot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/typescript-sdk/examples/vercel-ai" />
    </CardGroup>
  </Tab>

  <Tab title="Go">
    <CardGroup cols={3}>
      <Card title="LangWatch Go SDK" icon="link" href="https://github.com/langwatch/langwatch/blob/main/go-sdk/examples" />
    </CardGroup>
  </Tab>

  <Tab title="OpenTelemetry">
    <CardGroup cols={3}>
      <Card title="OpenInference DSPy Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openinference_dspy_bot.py" />

      <Card title="OpenInference Haystack" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openinference_haystack.py" />

      <Card title="OpenInference LangChain Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openinference_langchain_bot.py" />

      <Card title="OpenInference OpenAI Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openinference_openai_bot.py" />

      <Card title="OpenTelemetry Anthropic Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openllmetry_anthropic_bot.py" />

      <Card title="OpenTelemetry LangChain Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openllmetry_langchain_bot.py" />

      <Card title="OpenTelemetry OpenAI Bot" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/openllmetry_openai_bot.py" />

      <Card title="Traditional Instrumentation FastAPI App" icon="link" href="https://github.com/langwatch/langwatch/blob/main/python-sdk/examples/opentelemetry/traditional_instrumentation_fastapi_app.py" />
    </CardGroup>
  </Tab>
</Tabs>
