类class
agentscope.eventModelCallEndEvent
class ModelCallEndEvent(EventBase)
源码Source
agentscope/event/_event.py:138–156模型调用结束事件,描述执行过程中的事件。位于 agentscope.event 包,继承自 EventBase。
Model call end event. Declared in agentscope.event. Extends EventBase.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | Literal[EventType.MODEL_CALL_END] | 类型字段。 | EventType.MODEL_CALL_END |
reply_id | str | 回复标识字段。 | — |
input_tokens | int | 输入令牌数字段。 | — |
output_tokens | int | 输出令牌数字段。 | — |
cache_input_tokens | int | 缓存输入令牌数字段。 | 0 |
cache_creation_input_tokens | int | `cache_creation_input_tokens` 字段。 | 0 |
finished_reason | FinishedReason | `finished_reason` 字段。 | Field(default=FinishedReason.COMPLETED) |
属性详情Attribute Detail
type
Literal[EventType.MODEL_CALL_END] = EventType.MODEL_CALL_END类型字段。声明为 Literal[EventType.MODEL_CALL_END]。
The type field.
源码Source
agentscope/event/_event.py:141reply_id
str回复标识字段。声明为 str。
The reply id field.
源码Source
agentscope/event/_event.py:143input_tokens
int输入令牌数字段。声明为 int。
The input tokens field.
源码Source
agentscope/event/_event.py:145output_tokens
int输出令牌数字段。声明为 int。
The output tokens field.
源码Source
agentscope/event/_event.py:147cache_input_tokens
int = 0缓存输入令牌数字段。声明为 int。
The cache input tokens field.
源码Source
agentscope/event/_event.py:149cache_creation_input_tokens
int = 0cache_creation_input_tokens 字段。声明为 int。
The cache creation input tokens field.
源码Source
agentscope/event/_event.py:151finished_reason
FinishedReason = Field(default=FinishedReason.COMPLETED)finished_reason 字段。声明为 FinishedReason。
The finished reason field.
源码Source
agentscope/event/_event.py:153