dexcost 0.6.0

Agent Unit Economics SDK for Rust — track end-to-end business-task costs for AI agents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Integrations with external observability platforms (Langfuse, LangSmith, OTel)
//! and LLM orchestration frameworks (LangChain).
//!
//! Use `traces::link_trace(provider, trace_id)` from inside an active task
//! context to associate a third-party trace with the current dexcost task.
//!
//! Use [`langchain::DexcostCallbackHandler`] to record LLM calls made through
//! a LangChain-style pipeline as dexcost cost events.

pub mod langchain;
pub mod traces;

pub use langchain::DexcostCallbackHandler;