AS AgentScopeAPI 手册 / API Reference

AgentVersionEntityRepository

public interface AgentVersionEntityRepository extends JpaRepository<AgentVersionEntity, Long>
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:23–32

定义智能体版本 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<AgentVersionEntity, Long>。核心成员包括 findByOwnerIdAndAgentIdOrderByVersionAsc、findByOwnerIdAndAgentIdAndVersion、deleteByOwnerIdAndAgentId。

Spring Data repository for AgentVersionEntity.

方法摘要Method Summary

方法Method说明Description
public List<AgentVersionEntity> findByOwnerIdAndAgentIdOrderByVersionAsc(String ownerId, String agentId)
查找 `findByOwnerIdAndAgentIdOrderByVersionAsc`。
Finds the by owner id and agent id order by version asc.
public Optional<AgentVersionEntity> findByOwnerIdAndAgentIdAndVersion(String ownerId, String agentId, int version)
查找通过所有者标识和智能体标识和版本。
Finds the by owner id and agent id and version.
public void deleteByOwnerIdAndAgentId(String ownerId, String agentId)
删除通过所有者标识和智能体标识。
Deletes the by owner id and agent id.

方法详情Method Detail

findByOwnerIdAndAgentIdOrderByVersionAsc

public List<AgentVersionEntity> findByOwnerIdAndAgentIdOrderByVersionAsc(String ownerId, String agentId)

查找 findByOwnerIdAndAgentIdOrderByVersionAsc。

Finds the by owner id and agent id order by version asc.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
agentIdString智能体标识(类型 `String`)。The agent id.
返回Returns List<AgentVersionEntity>
返回列出。Returns list.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:25–26

findByOwnerIdAndAgentIdAndVersion

public Optional<AgentVersionEntity> findByOwnerIdAndAgentIdAndVersion(String ownerId, String agentId, int version)

查找通过所有者标识和智能体标识和版本。

Finds the by owner id and agent id and version.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
agentIdString智能体标识(类型 `String`)。The agent id.
versionint版本(类型 `int`)。The version.
返回Returns Optional<AgentVersionEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:28–29

deleteByOwnerIdAndAgentId

public void deleteByOwnerIdAndAgentId(String ownerId, String agentId)

删除通过所有者标识和智能体标识。

Deletes the by owner id and agent id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
agentIdString智能体标识(类型 `String`)。The agent id.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:31
基于官方固定版本源码静态生成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.