CreateAgentRuntimeInput

Updated at:
Copy as MD

Parameter

Type

Description

Example

object

The input parameters required to create an agent runtime.

agentRuntimeName

string

The name of the agent runtime. The name must be unique.

my-agent-runtime

description

string

The description of the agent runtime.

AI agent runtime for customer service automation

artifactType

string

Specifies the deployment type of the agent runtime. Valid values: Code (code mode) and Container (container mode).

Code

codeConfiguration CodeConfiguration

The code configuration information when artifactType is set to Code, including the code source and entry file.

{}

containerConfiguration ContainerConfiguration

The container configuration information when artifactType is set to Container, including the image address and startup command.

{}

credentialId

string

The ID of the credential used to access external services.

cred-1234567890abcdef

credentialName

string

The name of the credential used to access the agent runtime.

my-credential

externalAgentEndpointUrl

string

The access endpoint URL of the external agent.

https://external-agent.example.com/api

networkConfiguration NetworkConfiguration

The network configuration of the agent runtime.

{}

protocolConfiguration ProtocolConfiguration

The communication protocol configuration of the agent runtime.

{}

executionRoleArn

string

The ARN of the execution role that grants the agent runtime permissions to access cloud services.

acs:ram::123456789012:role/AgentRunExecutionRole

cpu

number

The CPU resources allocated to the agent runtime, measured in cores.

2.0

memory

integer

The memory resources allocated to the agent runtime, measured in MB.

2048

diskSize

integer

The disk size.

10240

port

integer

The listening port of the agent runtime.

8080

sessionConcurrencyLimitPerInstance

integer

The maximum number of concurrent sessions allowed per runtime instance.

100

logConfiguration LogConfiguration

The Simple Log Service (SLS) configuration.

{}

sessionIdleTimeoutSeconds

integer

The idle timeout period for a session, in seconds. When an instance has no session requests, it enters an idle state and is billed in idle mode. If the idle time exceeds this timeout period, the session automatically expires and can no longer be used.

3600

enableSessionIsolation

boolean

Specifies whether to enable session isolation. If enabled, each session runs in an isolated environment.

false

disableOndemand

boolean

Specifies whether to disable on-demand scaling. Default value: false. Set to true to disable on-demand scaling.

false

disableSessionAffinity

boolean

Specifies whether to disable session affinity. Default value: false, which means session affinity is enabled by default. Set to true to disable session affinity.

false

sessionAffinityType

string

The session affinity mode. Valid values: NONE (disables session affinity), HEADER_FIELD (enables session affinity based on request headers), GENERATED_COOKIE (enables session affinity by using cookies generated by Function Compute), and COOKIE (a compatibility alias that the server normalizes to GENERATED_COOKIE).

GENERATED_COOKIE

headerFieldName

string

The name of the request header used for session affinity when sessionAffinityType is set to HEADER_FIELD.

x-agentrun-session-id

healthCheckConfiguration HealthCheckConfiguration

The health check configuration of the agent runtime.

{}

resourceGroupId

string

The ID of the resource group to which the resource belongs.

rg-acfm2pz25js****

workspaceId

string

The ID of the workspace to which the resource belongs.

ws-1234567890abcdef

nasConfig NASConfig

The NAS mount configuration.

{}

ossMountConfig OSSMountConfig

The OSS mount configuration.

{}

agentIdentityEnabled

boolean

Specifies whether to enable the agent identity feature.

agentIdentityConfig RuntimeAgentIdentityConfig

The agent identity configuration.

environmentVariables

object

The environment variables of the agent runtime.

{"ENV_VAR1":"value1","ENV_VAR2":"value2"}

string

The environment variables of the agent runtime.

ENV_VAR1=value1,ENV_VAR2=value2

systemTags

array

The system tags of the agent runtime.

system-tag-1,system-tag-2

string

The system tags of the agent runtime.

system-tag-1,system-tag-2

edition

string

The runtime version specifications.

standard