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 |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
createdAt | String | 已创建 At(类型 `String`)。The created at. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
replyId | String | 回复标识(类型 `String`)。The reply id. |
name | String | 名称(类型 `String`)。The name. |
role | String | 角色(类型 `String`)。The role. |
源码Source
io/agentscope/core/event/AgentStartEvent.java:31–44AgentStartEvent
public AgentStartEvent(String sessionId, String replyId, String name)
初始化 AgentStartEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
replyId | String | 回复标识(类型 `String`)。The reply id. |
name | String | 名称(类型 `String`)。The name. |
源码Source
io/agentscope/core/event/AgentStartEvent.java:46–51方法详情Method Detail
getType
public AgentEventType getType()
获取类型。
Returns the type.
AgentEventType返回AgentEventType。Returns agent event type.
源码Source
io/agentscope/core/event/AgentStartEvent.java:53–56getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/AgentStartEvent.java:58–60getReplyId
public String getReplyId()
获取回复标识。
Returns the reply id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/AgentStartEvent.java:62–64getName
public String getName()
获取名称。
Returns the name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/AgentStartEvent.java:66–68getRole
public String getRole()
获取角色。
Returns the role.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/AgentStartEvent.java:70–72