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

ReplyStartEvent

class ReplyStartEvent(EventBase)
源码Source agentscope/event/_event.py:82–94

回复启动事件,描述执行过程中的事件。位于 agentscope.event 包,继承自 EventBase。

Reply start event. Declared in agentscope.event. Extends EventBase.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
typeLiteral[EventType.REPLY_START]
类型字段。
EventType.REPLY_START
session_idstr
会话标识字段。
—
reply_idstr
回复标识字段。
—
namestr
名称字段。
—
roleLiteral['user', 'assistant', 'system']
角色字段。
'assistant'

属性详情Attribute Detail

type

Literal[EventType.REPLY_START] = EventType.REPLY_START

类型字段。声明为 Literal[EventType.REPLY_START]。

The type field.

源码Source agentscope/event/_event.py:85

session_id

str

会话标识字段。声明为 str。

The session id field.

源码Source agentscope/event/_event.py:87

reply_id

str

回复标识字段。声明为 str。

The reply id field.

源码Source agentscope/event/_event.py:89

name

str

名称字段。声明为 str。

The name field.

源码Source agentscope/event/_event.py:91

role

Literal['user', 'assistant', 'system'] = 'assistant'

角色字段。声明为 Literal['user', 'assistant', 'system']。

The role field.

源码Source agentscope/event/_event.py:93

继承成员Inherited Members

继承自Inherited from EventBase
基于官方固定版本源码静态生成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.