Hacker News Show HN· vijaypoudel·· 2026-11-04AI 评分47
Traccia 开源 AI Agent 运行时治理 SDK,已在 PyPI 发布
Show HN: Traccia – open-sourced AI agent runtime governance
AI 导读
Traccia 是一个开源、生产可用的 Python SDK,用于在运行时观测、评估并执行 AI Agent 与 LLM 应用策略。它基于 OpenTelemetry,提供分布式追踪、token 与成本统计、评估及运行时策略执行,@govern 可拦截或改写 LLM 与工具调用,支持 Spend Cap、Model Boundary、Loop Cap 等策略。
来源:Hacker News Show HN · github.com
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发Traccia 开源 AI Agent 运行时治理 SDK,已在 PyPI 发布 📊 核心数据与事实(2026-11-04): Traccia 是一个开源、生产可用的 Python SDK,用于在运行时观测、评估并执行 AI Agent 与 LLM 应用策略。它基于 OpenTelemetry,提供分布式追踪、token 与成本统计、评估及运行时策略执行,@govern 可拦截或改写 LLM 与工具调用,支持 Spend Cap、Model Boundary、Loop Cap 等策略。 • 原文实测切片:endpoint = " endpoint = " " sample_rate = 1.0 # 0.0 to 1.0 auto_start_trace = true # Auto-start root trace on init auto_trace_name = " root " # Name for auto-started trace use_otlp = true # Use OTLP exporter # service_name = "my-app" #… • 原文实测切片:Sampling Control trace volume with sampling: # Sample 10% of traces init ( sample_rate = 0.1 ) # Sampling is applied at trace creation time # Traces are either fully included or fully excluded Token Counting & Cost Calculation Automatic for… • 原文实测切片:Default Metrics Traccia automatically emits these metrics: Metric Type Unit Description gen_ai.client.token.usage Histogram {token} Input/output tokens per call gen_ai.client.operation.duration Histogram s LLM operation duration gen_ai.client.o… 💡 对独立开发者的启发: 1/ 写代码发新版是最舒服的「伪勤奋」——大多数独立开发项目零收入不是产品不行,而是压根没做分发。 2/ 任何一次上线流量都会自然衰减;在动手写第二个工具之前,先给第一个产品建好可持续获客漏斗(SEO 长尾词、Reddit 真实复盘、社媒切片)。 3/ 把 80% 精力放分发和落地页首屏转化上:先靠单点高痛点工具跑出稳定现金流,再谈矩阵放大。 📅 日期:2026-11-04(北京时间) 📰 信息源出处:Hacker News Show HN · vijaypoudel(github.com) 🔗 原文:https://github.com/traccia-ai/traccia-py 📡 归档:https://billionare.me/items/rm75ndxs23f2yveuatp0ukevp