Skip to content

Commit a3cc786

Browse files
docs: sync code blocks and generate API reference (#154)
Synced from agent-sdk ref: main Co-authored-by: xingyaoww <[email protected]>
1 parent 4cef157 commit a3cc786

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/guides/agent-tom-agent.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ print("\n" + "=" * 80)
137137
print("Tom agent consultation example completed!")
138138
print("=" * 80)
139139

140+
# Report cost
141+
cost = llm.metrics.accumulated_cost
142+
print(f"EXAMPLE_COST: {cost}")
143+
140144

141145
# Optional: Index this conversation for Tom's user modeling
142146
# This builds user preferences and patterns from conversation history

0 commit comments

Comments
 (0)