type: "container_auto"

Automatically creates a container for this request

file_ids?: Array<string>

An optional list of uploaded files to make available to your code.

maxItems50
memory_limit?: "1g" | "4g" | "16g" | "64g" | null

The memory limit for the container.

One of the following:
"1g"
"4g"
"16g"
"64g"
network_policy?: BetaContainerNetworkPolicyDisabled { type } | BetaContainerNetworkPolicyAllowlist { allowed_domains, type, domain_secrets }

Network access policy for the container.

One of the following:
BetaContainerNetworkPolicyDisabled { type }
type: "disabled"

Disable outbound network access. Always disabled.

BetaContainerNetworkPolicyAllowlist { allowed_domains, type, domain_secrets }
allowed_domains: Array<string>

A list of allowed domains when type is allowlist.

minItems1
type: "allowlist"

Allow outbound network access only to specified domains. Always allowlist.

domain_secrets?: Array<BetaContainerNetworkPolicyDomainSecret { domain, name, value } >

Optional domain-scoped secrets for allowlisted domains.

minItems1
domain: string

The domain associated with the secret.

minLength1
name: string

The name of the secret to inject for the domain.

minLength1
value: string

The secret value to inject for the domain.

minLength1
maxLength10485760
skills?: Array<BetaSkillReference { skill_id, type, version } | BetaInlineSkill { description, name, source, type } >

An optional list of skills referenced by id or inline data.

maxItems200
One of the following:
BetaSkillReference { skill_id, type, version }
skill_id: string

The ID of the referenced skill.

minLength1
maxLength64
type: "skill_reference"

References a skill created with the /v1/skills endpoint.

version?: string

Optional skill version. Use a positive integer or ‘latest’. Omit for default.

BetaInlineSkill { description, name, source, type }
description: string

The description of the skill.

name: string

The name of the skill.

source: BetaInlineSkillSource { data, media_type, type }

Inline skill payload

type: "inline"

Defines an inline skill for this request.