AS AgentScopeAPI 手册 / API Reference

AgentStartEvent

public class AgentStartEvent extends AgentEvent
源码Source io/agentscope/core/event/AgentStartEvent.java:24–73

智能体启动事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getSessionId、getReplyId、getName、getRole、AgentStartEvent。

Emitted when an agent begins processing an invocation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AgentStartEvent(String id, String createdAt, String sessionId, String replyId, String name, String role)
初始化 `AgentStartEvent` 实例。
Creates a new instance.
public AgentStartEvent(String sessionId, String replyId, String name)
初始化 `AgentStartEvent` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public AgentEventType getType()
获取类型。
Returns the type.
public String getSessionId()
获取会话标识。
Returns the session id.
public String getReplyId()
获取回复标识。
Returns the reply id.
public String getName()
获取名称。
Returns the name.
public String getRole()
获取角色。
Returns the role.

构造器详情Constructor Detail

AgentStartEvent

public AgentStartEvent(String id, String createdAt, String sessionId, String replyId, String name, String role)

初始化 AgentStartEvent 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
createdAtString已创建 At(类型 `String`)。The created at.
sessionIdString会话标识(类型 `String`)。The session id.
replyIdString回复标识(类型 `String`)。The reply id.
nameString名称(类型 `String`)。The name.
roleString角色(类型 `String`)。The role.
源码Source io/agentscope/core/event/AgentStartEvent.java:31–44

AgentStartEvent

public AgentStartEvent(String sessionId, String replyId, String name)

初始化 AgentStartEvent 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
replyIdString回复标识(类型 `String`)。The reply id.
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/core/event/AgentStartEvent.java:46–51

方法详情Method Detail

getType

public AgentEventType getType()

获取类型。

Returns the type.

返回Returns AgentEventType
返回AgentEventType。Returns agent event type.
源码Source io/agentscope/core/event/AgentStartEvent.java:53–56

getSessionId

public String getSessionId()

获取会话标识。

Returns the session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/AgentStartEvent.java:58–60

getReplyId

public String getReplyId()

获取回复标识。

Returns the reply id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/AgentStartEvent.java:62–64

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/AgentStartEvent.java:66–68

getRole

public String getRole()

获取角色。

Returns the role.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/AgentStartEvent.java:70–72

继承成员Inherited Members

基于官方固定版本源码静态生成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.