II.
OrchestrationPrimitive overview
Reference · liveorch-primitive:cost-tracking
Cost Tracking overview
Track token consumption, API costs, and compute expenses per agent session and aggregate them by task, run, or project. The primitive records per-turn token counts, model pricing tiers, and elapsed wall-clock time. Feeds budget-stop for threshold enforcement and audit-trail for spend accountability.
Attributes
displayName
Cost Tracking
description
Track token consumption, API costs, and compute expenses per agent
session and aggregate them by task, run, or project. The primitive
records per-turn token counts, model pricing tiers, and elapsed
wall-clock time. Feeds budget-stop for threshold enforcement and
audit-trail for spend accountability.
orchestrationKind
cost-tracking
trigger
event-driven
Outgoing edges
orch_requires_skill_area2
- skill-area:budgeting-forecasting·SkillAreaBudgeting and Forecasting
- skill-area:observability-instrumentation·SkillAreaObservability Instrumentation
orch_triggers1
- orch-primitive:budget-stop·OrchestrationPrimitiveBudget Stop
Incoming edges
orch_triggers1
- orch-primitive:cost-budget-allocation·OrchestrationPrimitiveCost Budget Allocation
supports_orchestration_primitive1
- agent-core-impl:claude-agent-sdk.core@current·AgentCoreImplClaude Agent SDK Core (current)