taolib.symphony.agent.events#
AppServer 事件解析与令牌核算。
将 Codex app-server 输出的原始 JSON 事件解析为结构化对象, 并跟踪增量令牌使用情况。
Classes#
AppServer 事件。 |
|
轮次执行结果。 |
|
令牌使用追踪器。 |
Functions#
|
将原始 JSON 字典解析为 AppServerEvent。 |
Module Contents#
- class taolib.symphony.agent.events.AppServerEvent#
AppServer 事件。
- class taolib.symphony.agent.events.TurnResult#
轮次执行结果。
- taolib.symphony.agent.events.parse_event(raw: dict) AppServerEvent#
将原始 JSON 字典解析为 AppServerEvent。
- 参数:
raw -- 从 app-server 接收的原始 JSON 行。
- 返回:
结构化的事件对象。