开源 AI工程平台:基于OpenTelemetry的LLM可观测性、GPU监控、护栏、评估、提示管理、保险库与游乐场。
AI 应用不再只是 LLM 调用。
一个生产级智能体可能涉及:
flowchart TD
U([User]) --> A[AI Agent]
A --> L[LLM calls]
A --> T[Tool calls]
A --> R[Retrieval]
A --> M[Memory]
A --> S[Sub-agents]
A --> P[Prompts]
A --> C[Code changes]
L & T & R & M & S & P & C --> E{{Evaluation}}
E --> O[["Cost / Quality / Errors"]]
style U fill:#F97316,stroke:#7C2D12,color:#fff
style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff
style E fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff
style O fill:#F97316,stroke:#7C2D12,color:#fffOpenLIT 让你对整个工作流程一目了然。
使用 OpenTelemetry,追踪每一次 LLM 调用、工具调用、提示词、智能体步骤、令牌、成本、错误和评估。
git clone https://github.com/openlit/openlit.git
cd openlit
docker compose up -d打开:
http://127.0.0.1:3000Python:
pip install openlitTypeScript:
npm install openlitPython:
import openlit
openlit.init()就这样。
OpenLIT 会自动对受支持的 LLM 提供商、框架、向量数据库及其他 AI 基础设施进行插桩,并导出 OpenTelemetry 追踪和指标。
默认情况下,配置 OTLP 端点:
export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318"或者:
import openlit
openlit.init(
otlp_endpoint="http://127.0.0.1:4318"
)打开你的仪表板,开始探索你的 AI 应用的追踪、指标、成本和性能。
AI 编码代理非常强大——但要理解它们实际做了什么可能很困难。
OpenLIT 为你提供编码代理会话的 OpenTelemetry 原生视图。
安装 CLI:
curl -fsSL https://raw.githubusercontent.com/openlit/openlit/main/cli/scripts/install.sh | shiwr -useb https://raw.githubusercontent.com/ope暂无开放 Issues,或尚未同步最近议题。