ThreadInfo
public record ThreadInfo( String id, String name, String agentId, boolean archived, String createdAt, String updatedAt, String lastRunAt)
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82承载会话线程信息数据的记录类型。位于 io.agentscope.examples.copilotkit.model 包。核心成员包括 id、name、agentId、archived、createdAt、updatedAt。
A record in io.agentscope.examples.copilotkit.model that carries data used when components talks to model services and returns generated or embedded output. Declared in io.agentscope.examples.copilotkit.model.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
name | String | 执行名称相关操作。 Performs the name operation. |
agentId | String | 执行智能体标识相关操作。 Performs the agent id operation. |
archived | boolean | 执行 `archived` 方法。 Performs the archived operation. |
createdAt | String | 执行已创建 At相关操作。 Performs the created at operation. |
updatedAt | String | 执行已更新 At相关操作。 Performs the updated at operation. |
lastRunAt | String | 执行最后运行 At相关操作。 Performs the last run at operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public ThreadInfo withName(String name) | 执行使用名称相关操作。 Performs the with name operation. |
public ThreadInfo withArchived(boolean archived) | 执行 `withArchived` 方法。 Performs the with archived operation. |
public ThreadInfo withUpdatedAt(String updatedAt) | 执行使用已更新 At相关操作。 Performs the with updated at operation. |
记录组件详情Record Component Detail
id
String id执行标识相关操作。
Performs the id operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82name
String name执行名称相关操作。
Performs the name operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82archived
boolean archived执行 archived 方法。
Performs the archived operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82createdAt
String createdAt执行已创建 At相关操作。
Performs the created at operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82updatedAt
String updatedAt执行已更新 At相关操作。
Performs the updated at operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82lastRunAt
String lastRunAt执行最后运行 At相关操作。
Performs the last run at operation.
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82方法详情Method Detail
withName
public ThreadInfo withName(String name)
执行使用名称相关操作。
Performs the with name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
ThreadInfoio/agentscope/examples/copilotkit/model/CopilotKitModels.java:71–73withArchived
public ThreadInfo withArchived(boolean archived)
执行 withArchived 方法。
Performs the with archived operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
archived | boolean | archived(类型 `boolean`)。The archived. |
ThreadInfoio/agentscope/examples/copilotkit/model/CopilotKitModels.java:75–77withUpdatedAt
public ThreadInfo withUpdatedAt(String updatedAt)
执行使用已更新 At相关操作。
Performs the with updated at operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | String | 已更新 At(类型 `String`)。The updated at. |
ThreadInfoio/agentscope/examples/copilotkit/model/CopilotKitModels.java:79–81