Agentic AI - Agent Observability
Find the bug in this token cost calculation code:
response = {'usage': {'prompt_tokens': 100, 'completion_tokens': 50}}
cost_per_token = 0.0001
total_tokens = response['usage']['prompt_tokens'] + response['usage']['completion_tokens']
cost = total_tokens * cost_per_token
print(f"Cost: ${cost}")