@trace, start_trace, log_llm_call, and log_tool_call. Plus @tool to register a function as a tracked tool. Use the framework-specific auto-instrumentation instead when possible — these are the manual escape hatches.
@decimalai.trace()
Decorator to trace a function as a complete agent run.
Name of the agent (appears in dashboard sidebar).
decimalai.start_trace()
Context manager for manual trace boundaries.
decimalai.log_llm_call()
Log an individual LLM call inside a trace.
Model identifier (e.g.,
"gpt-4o", "claude-sonnet-4-6").Input messages or prompt.
LLM response.
Prompt token count.
Completion token count.
Call latency in milliseconds.
decimalai.log_tool_call()
Log a tool invocation inside a trace.
@decimalai.tool
Decorator that registers a function as a tracked tool.
What’s next
Manifests
Track which version of your agent produced each trace.
Frameworks
Skip the manual calls — auto-instrument LangChain, OpenAI Agents, and more.