|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
创建智能体运行时所需的输入参数 |
||
| agentRuntimeName |
string |
智能体运行时名称,需唯一。 |
my-agent-runtime |
| description |
string |
智能体运行时描述。 |
AI agent runtime for customer service automation |
| artifactType |
string |
指定智能体运行时的部署类型,支持 Code(代码模式)和 Container(容器模式) |
Code |
| codeConfiguration | CodeConfiguration |
当 artifactType 为 Code 时的代码配置信息,包括代码源、入口文件等 |
{} |
| containerConfiguration | ContainerConfiguration |
当 artifactType 为 Container 时的容器配置信息,包括镜像地址、启动命令等 |
{} |
| credentialId |
string |
访问外部服务使用的凭证 ID。 |
cred-1234567890abcdef |
| credentialName |
string |
访问智能体运行时使用的凭证名称。 |
my-credential |
| externalAgentEndpointUrl |
string |
外部智能体的访问端点地址。 |
https://external-agent.example.com/api |
| networkConfiguration | NetworkConfiguration |
智能体运行时网络配置。 |
{} |
| protocolConfiguration | ProtocolConfiguration |
智能体运行时通信协议配置。 |
{} |
| executionRoleArn |
string |
为智能体运行时提供访问云服务权限的执行角色 ARN |
acs:ram::123456789012:role/AgentRunExecutionRole |
| cpu |
number |
为智能体运行时分配的 CPU 资源,单位为核数 |
2.0 |
| memory |
integer |
为智能体运行时分配的内存资源,单位为 MB |
2048 |
| diskSize |
integer |
磁盘大小 |
10240 |
| port |
integer |
智能体运行时监听端口。 |
8080 |
| sessionConcurrencyLimitPerInstance |
integer |
每个运行时实例允许的最大并发会话数 |
100 |
| logConfiguration | LogConfiguration |
SLS(简单日志服务)配置 |
{} |
| sessionIdleTimeoutSeconds |
integer |
会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用 |
3600 |
| enableSessionIsolation |
boolean |
是否启用会话隔离,启用后每个会话将在独立的环境中运行 |
false |
| disableOndemand |
boolean |
是否禁用按需弹性能力。默认为 false,设置为 true 时关闭按需弹性 |
false |
| disableSessionAffinity |
boolean |
是否禁用会话亲和性。默认为 false(即默认启用会话亲和),设置为 true 时关闭会话亲和 |
false |
| sessionAffinityType |
string |
会话亲和模式。NONE 表示关闭会话亲和;HEADER_FIELD 表示基于请求头的会话亲和;GENERATED_COOKIE 表示由 FC 生成 Cookie 进行会话亲和;COOKIE 为兼容别名,服务端会归一为 GENERATED_COOKIE |
GENERATED_COOKIE |
| headerFieldName |
string |
当 sessionAffinityType 为 HEADER_FIELD 时用于会话亲和的请求头名称 |
x-agentrun-session-id |
| healthCheckConfiguration | HealthCheckConfiguration |
智能体运行时健康检查配置。 |
{} |
| resourceGroupId |
string |
资源所属的资源组 ID。 |
rg-acfm2pz25js**** |
| workspaceId |
string |
所属工作空间 ID。 |
ws-1234567890abcdef |
| nasConfig | NASConfig |
NAS 挂载配置。 |
{} |
| ossMountConfig | OSSMountConfig |
OSS 挂载配置。 |
{} |
| armsConfiguration | ArmsConfiguration |
应用实时监控服务(ARMS)的配置信息 |
{} |
| agentIdentityEnabled |
boolean |
是否启用智能体身份能力。 |
|
| agentIdentityConfig | RuntimeAgentIdentityConfig |
智能体身份配置。 |
|
| environmentVariables |
object |
智能体运行时环境变量。 |
ENV_VAR1=value1,ENV_VAR2=value2 |
|
string |
智能体运行时环境变量。 |
ENV_VAR1=value1,ENV_VAR2=value2 |
|
| systemTags |
array |
智能体运行时系统标签。 |
system-tag-1,system-tag-2 |
|
string |
智能体运行时系统标签。 |
system-tag-1,system-tag-2 |
|
| edition |
string |
运行时版本规格。 |
standard |
CreateAgentRuntimeInput
更新时间:
复制 MD 格式
该文章对您有帮助吗?