AS AgentScopeAPI 手册 / API Reference

DeploymentEntity

@Entity @Table( name = "builder_deployment", indexes = { @Index(name = "ix_builder_deployment_owner", columnList = "owner_id"), @Index(name = "ix_builder_deployment_agent", columnList = "agent_id"), @Index(name = "ix_builder_deployment_webhook_token", columnList = "webhook_token") }) public class DeploymentEntity
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:31–233

部署 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getDeploymentId、setDeploymentId、getOwnerId、setOwnerId。

A deployment binds an agent (optionally pinned to a version) and an execution environment to a trigger — cron, webhook, or manual — so it can be fired automatically or on demand without a human driving a chat session.

构造器摘要Constructor Summary

构造器Constructor说明Description
public DeploymentEntity()
初始化 `DeploymentEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getDeploymentId()
获取部署标识。
Returns the deployment id.
public void setDeploymentId(String deploymentId)
设置部署标识。
Sets the deployment id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public String getAgentId()
获取智能体标识。
Returns the agent id.
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
public Integer getAgentVersion()
获取智能体版本。
Returns the agent version.
public void setAgentVersion(Integer agentVersion)
设置智能体版本。
Sets the agent version.
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
public String getTriggerType()
获取 `getTriggerType`。
Returns the trigger type.
public void setTriggerType(String triggerType)
设置 `setTriggerType`。
Sets the trigger type.
public String getCronExpression()
获取 `getCronExpression`。
Returns the cron expression.
public void setCronExpression(String cronExpression)
设置 `setCronExpression`。
Sets the cron expression.
public String getWebhookToken()
获取 `getWebhookToken`。
Returns the webhook token.
public void setWebhookToken(String webhookToken)
设置 `setWebhookToken`。
Sets the webhook token.
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
public Long getLastRunAt()
获取最后运行 At。
Returns the last run at.
public void setLastRunAt(Long lastRunAt)
设置最后运行 At。
Sets the last run at.
public String getLastSessionId()
获取最后会话标识。
Returns the last session id.
public void setLastSessionId(String lastSessionId)
设置最后会话标识。
Sets the last session id.
public String getLastStatus()
获取最后状态。
Returns the last status.
public void setLastStatus(String lastStatus)
设置最后状态。
Sets the last status.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
public Long getArchivedAt()
获取 `getArchivedAt`。
Returns the archived at.
public void setArchivedAt(Long archivedAt)
设置 `setArchivedAt`。
Sets the archived at.

构造器详情Constructor Detail

DeploymentEntity

public DeploymentEntity()

初始化 DeploymentEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:96

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:98–100

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:102–104

getDeploymentId

public String getDeploymentId()

获取部署标识。

Returns the deployment id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:106–108

setDeploymentId

public void setDeploymentId(String deploymentId)

设置部署标识。

Sets the deployment id.

参数Parameters
名称Name类型Type说明Description
deploymentIdString部署标识(类型 `String`)。The deployment id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:110–112

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:114–116

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:118–120

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:122–124

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:126–128

getAgentId

public String getAgentId()

获取智能体标识。

Returns the agent id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:130–132

setAgentId

public void setAgentId(String agentId)

设置智能体标识。

Sets the agent id.

参数Parameters
名称Name类型Type说明Description
agentIdString智能体标识(类型 `String`)。The agent id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:134–136

getAgentVersion

public Integer getAgentVersion()

获取智能体版本。

Returns the agent version.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:138–140

setAgentVersion

public void setAgentVersion(Integer agentVersion)

设置智能体版本。

Sets the agent version.

参数Parameters
名称Name类型Type说明Description
agentVersionInteger智能体版本(类型 `Integer`)。The agent version.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:142–144

getEnvironmentId

public String getEnvironmentId()

获取环境标识。

Returns the environment id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:146–148

setEnvironmentId

public void setEnvironmentId(String environmentId)

设置环境标识。

Sets the environment id.

参数Parameters
名称Name类型Type说明Description
environmentIdString环境标识(类型 `String`)。The environment id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:150–152

getTriggerType

public String getTriggerType()

获取 getTriggerType。

Returns the trigger type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:154–156

setTriggerType

public void setTriggerType(String triggerType)

设置 setTriggerType。

Sets the trigger type.

参数Parameters
名称Name类型Type说明Description
triggerTypeStringtrigger 类型(类型 `String`)。The trigger type.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:158–160

getCronExpression

public String getCronExpression()

获取 getCronExpression。

Returns the cron expression.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:162–164

setCronExpression

public void setCronExpression(String cronExpression)

设置 setCronExpression。

Sets the cron expression.

参数Parameters
名称Name类型Type说明Description
cronExpressionStringcron Expression(类型 `String`)。The cron expression.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:166–168

getWebhookToken

public String getWebhookToken()

获取 getWebhookToken。

Returns the webhook token.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:170–172

setWebhookToken

public void setWebhookToken(String webhookToken)

设置 setWebhookToken。

Sets the webhook token.

参数Parameters
名称Name类型Type说明Description
webhookTokenStringwebhook 令牌(类型 `String`)。The webhook token.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:174–176

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:178–180

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:182–184

getLastRunAt

public Long getLastRunAt()

获取最后运行 At。

Returns the last run at.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:186–188

setLastRunAt

public void setLastRunAt(Long lastRunAt)

设置最后运行 At。

Sets the last run at.

参数Parameters
名称Name类型Type说明Description
lastRunAtLong最后运行 At(类型 `Long`)。The last run at.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:190–192

getLastSessionId

public String getLastSessionId()

获取最后会话标识。

Returns the last session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:194–196

setLastSessionId

public void setLastSessionId(String lastSessionId)

设置最后会话标识。

Sets the last session id.

参数Parameters
名称Name类型Type说明Description
lastSessionIdString最后会话标识(类型 `String`)。The last session id.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:198–200

getLastStatus

public String getLastStatus()

获取最后状态。

Returns the last status.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:202–204

setLastStatus

public void setLastStatus(String lastStatus)

设置最后状态。

Sets the last status.

参数Parameters
名称Name类型Type说明Description
lastStatusString最后状态(类型 `String`)。The last status.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:206–208

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:210–212

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:214–216

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:218–220

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:222–224

getArchivedAt

public Long getArchivedAt()

获取 getArchivedAt。

Returns the archived at.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:226–228

setArchivedAt

public void setArchivedAt(Long archivedAt)

设置 setArchivedAt。

Sets the archived at.

参数Parameters
名称Name类型Type说明Description
archivedAtLongarchived At(类型 `Long`)。The archived at.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntity.java:230–232
基于官方固定版本源码静态生成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.