AS AgentScopeAPI 手册 / API Reference

ThreadInfo

public record ThreadInfo( String id, String name, String agentId, boolean archived, String createdAt, String updatedAt, String lastRunAt)
源码Source 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
idString
执行标识相关操作。
Performs the id operation.
nameString
执行名称相关操作。
Performs the name operation.
agentIdString
执行智能体标识相关操作。
Performs the agent id operation.
archivedboolean
执行 `archived` 方法。
Performs the archived operation.
createdAtString
执行已创建 At相关操作。
Performs the created at operation.
updatedAtString
执行已更新 At相关操作。
Performs the updated at operation.
lastRunAtString
执行最后运行 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.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

agentId

String agentId

执行智能体标识相关操作。

Performs the agent id operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

archived

boolean archived

执行 archived 方法。

Performs the archived operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

createdAt

String createdAt

执行已创建 At相关操作。

Performs the created at operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

updatedAt

String updatedAt

执行已更新 At相关操作。

Performs the updated at operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

lastRunAt

String lastRunAt

执行最后运行 At相关操作。

Performs the last run at operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:62–82

方法详情Method Detail

withName

public ThreadInfo withName(String name)

执行使用名称相关操作。

Performs the with name operation.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
返回Returns ThreadInfo
返回ThreadInfo。Returns thread info.
源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:71–73

withArchived

public ThreadInfo withArchived(boolean archived)

执行 withArchived 方法。

Performs the with archived operation.

参数Parameters
名称Name类型Type说明Description
archivedbooleanarchived(类型 `boolean`)。The archived.
返回Returns ThreadInfo
返回ThreadInfo。Returns thread info.
源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:75–77

withUpdatedAt

public ThreadInfo withUpdatedAt(String updatedAt)

执行使用已更新 At相关操作。

Performs the with updated at operation.

参数Parameters
名称Name类型Type说明Description
updatedAtString已更新 At(类型 `String`)。The updated at.
返回Returns ThreadInfo
返回ThreadInfo。Returns thread info.
源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:79–81
基于官方固定版本源码静态生成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.