Skip to main content
此示例展示了如何获取特殊的 token 指标,例如音频、缓存和推理 token。

代码

cookbook/agent_concepts/other/agent_extra_metrics.py

用法

1

创建虚拟环境

打开 Terminal 并创建一个 python 虚拟环境。
2

设置你的 API 密钥

3

安装库

4

运行 Agent