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 |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
List<AgentVersionEntity>返回列出。Returns list.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:25–26findByOwnerIdAndAgentIdAndVersion
public Optional<AgentVersionEntity> findByOwnerIdAndAgentIdAndVersion(String ownerId, String agentId, int version)
查找通过所有者标识和智能体标识和版本。
Finds the by owner id and agent id and version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
version | int | 版本(类型 `int`)。The version. |
Optional<AgentVersionEntity>返回可选。Returns optional.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:28–29deleteByOwnerIdAndAgentId
public void deleteByOwnerIdAndAgentId(String ownerId, String agentId)
删除通过所有者标识和智能体标识。
Deletes the by owner id and agent id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntityRepository.java:31