AS AgentScopeAPI 手册 / API Reference
类class agentscope.realtime

ResponseDoneEvent

class ResponseDoneEvent(ModelEvent)
源码Source agentscope/realtime/_events.py:78–83

响应 Done 事件,描述执行过程中的事件。位于 agentscope.realtime 包,继承自 ModelEvent。

The provider finished producing a reply. Declared in agentscope.realtime. Extends ModelEvent.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
item_idstr
条目标识字段。
—
input_tokensint
输入令牌数字段。
Field(default=0, ge=0)
output_tokensint
输出令牌数字段。
Field(default=0, ge=0)

属性详情Attribute Detail

item_id

str

条目标识字段。声明为 str。

The item id field.

源码Source agentscope/realtime/_events.py:81

input_tokens

int = Field(default=0, ge=0)

输入令牌数字段。声明为 int。

The input tokens field.

源码Source agentscope/realtime/_events.py:82

output_tokens

int = Field(default=0, ge=0)

输出令牌数字段。声明为 int。

The output tokens field.

源码Source agentscope/realtime/_events.py:83
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.