类class
agentscope.eventReplyEndEvent
class ReplyEndEvent(EventBase)
源码Source
agentscope/event/_event.py:111–124回复结束事件,描述执行过程中的事件。位于 agentscope.event 包,继承自 EventBase。
Reply end event. Declared in agentscope.event. Extends EventBase.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | Literal[EventType.REPLY_END] | 类型字段。 | EventType.REPLY_END |
session_id | str | 会话标识字段。 | — |
reply_id | str | 回复标识字段。 | — |
finished_reason | ReplyFinishedReason | `finished_reason` 字段。 | ReplyFinishedReason.COMPLETED |
error | ErrorInfo | None | 错误字段。 | None |
属性详情Attribute Detail
type
Literal[EventType.REPLY_END] = EventType.REPLY_END类型字段。声明为 Literal[EventType.REPLY_END]。
The type field.
源码Source
agentscope/event/_event.py:114session_id
str会话标识字段。声明为 str。
The session id field.
源码Source
agentscope/event/_event.py:116reply_id
str回复标识字段。声明为 str。
The reply id field.
源码Source
agentscope/event/_event.py:118finished_reason
ReplyFinishedReason = ReplyFinishedReason.COMPLETEDfinished_reason 字段。声明为 ReplyFinishedReason。
The finished reason field.
源码Source
agentscope/event/_event.py:120error
ErrorInfo | None = None错误字段。声明为 ErrorInfo | None。
The error field.
源码Source
agentscope/event/_event.py:122