Total Cost • AI Agent SDK
total_cost: Cumulative USD cost of all LLM calls in this agent run.
total_cost
Method
</div>
Cumulative USD cost of all LLM calls in this agent run.
Signature
def total_cost() -> floatReturns
ResponseField
floatThe result of the operation.
Source
View on GitHubpraisonaiagents/agent/agent.py at line 3668