RunStarted
@JsonInclude(JsonInclude.Include.NON_NULL) record RunStarted( String threadId, String runId, String parentRunId, RunAgentInput input, Long timestamp, Object rawEvent) implements AguiEvent
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203承载运行已启动数据的记录类型。位于 io.agentscope.core.agui.event 包,实现 AguiEvent。核心成员包括 threadId、runId、parentRunId、input、timestamp、rawEvent。
Event indicating that an agent run has started. This is the first event emitted when an agent begins processing a request.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
threadId | String | 执行会话线程标识相关操作。 Performs the thread id operation. |
runId | String | 运行标识。 Runs the id. |
parentRunId | String | 执行父级运行标识相关操作。 Performs the parent run id operation. |
input | RunAgentInput | 执行输入相关操作。 Performs the input operation. |
timestamp | Long | 执行时间戳相关操作。 Performs the timestamp operation. |
rawEvent | Object | 执行原始事件相关操作。 Performs the raw event operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RunStarted(String threadId, String runId, String parentRunId, RunAgentInput input, Long timestamp, Object rawEvent) | 初始化 `RunStarted` 实例。 Creates a new instance. |
public RunStarted(String threadId, String runId, String parentRunId, RunAgentInput input) | 初始化 `RunStarted` 实例。 Creates a new instance. |
public RunStarted(String threadId, String runId) | 初始化 `RunStarted` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AguiEventType getType() | 获取类型。 Returns the type. |
public String getThreadId() | 获取会话线程标识。 Returns the thread id. |
public String getRunId() | 获取运行标识。 Returns the run id. |
记录组件详情Record Component Detail
threadId
String threadId执行会话线程标识相关操作。
Performs the thread id operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203runId
String runId运行标识。
Runs the id.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203parentRunId
String parentRunId执行父级运行标识相关操作。
Performs the parent run id operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203input
RunAgentInput input执行输入相关操作。
Performs the input operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203timestamp
Long timestamp执行时间戳相关操作。
Performs the timestamp operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203rawEvent
Object rawEvent执行原始事件相关操作。
Performs the raw event operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:154–203构造器详情Constructor Detail
RunStarted
public RunStarted(String threadId, String runId, String parentRunId, RunAgentInput input, Long timestamp, Object rawEvent)
初始化 RunStarted 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
parentRunId | String | 父级运行标识(类型 `String`)。The parent run id. |
input | RunAgentInput | 输入消息(类型 `RunAgentInput`)。The input. |
timestamp | Long | 时间戳(类型 `Long`)。The timestamp. |
rawEvent | Object | 原始事件(类型 `Object`)。The raw event. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:164–179RunStarted
public RunStarted(String threadId, String runId, String parentRunId, RunAgentInput input)
初始化 RunStarted 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
parentRunId | String | 父级运行标识(类型 `String`)。The parent run id. |
input | RunAgentInput | 输入消息(类型 `RunAgentInput`)。The input. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:181–183RunStarted
public RunStarted(String threadId, String runId)
初始化 RunStarted 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:185–187方法详情Method Detail
getType
public AguiEventType getType()
获取类型。
Returns the type.
AguiEventType返回AguiEventType。Returns agui event type.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:189–192getThreadId
public String getThreadId()
获取会话线程标识。
Returns the thread id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:194–197getRunId
public String getRunId()
获取运行标识。
Returns the run id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:199–202