type: Literal["container_auto"]

Automatically creates a container for this request

file_ids: Optional[List[str]]

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

memory_limit: Optional[Literal["1g", "4g", "16g", "64g"]]

The memory limit for the container.

One of the following:
"1g"
"4g"
"16g"
"64g"
network_policy: Optional[NetworkPolicy]

Network access policy for the container.

One of the following:
class BetaContainerNetworkPolicyDisabled: …
type: Literal["disabled"]

Disable outbound network access. Always disabled.

class BetaContainerNetworkPolicyAllowlist: …
allowed_domains: List[str]

A list of allowed domains when type is allowlist.

type: Literal["allowlist"]

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

domain_secrets: Optional[List[BetaContainerNetworkPolicyDomainSecret]]

Optional domain-scoped secrets for allowlisted domains.

domain: str

The domain associated with the secret.

minLength1
name: str

The name of the secret to inject for the domain.

minLength1
value: str

The secret value to inject for the domain.

minLength1
maxLength10485760
skills: Optional[List[Skill]]

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

One of the following:
class BetaSkillReference: …
skill_id: str

The ID of the referenced skill.

minLength1
maxLength64
type: Literal["skill_reference"]

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

version: Optional[str]

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

class BetaInlineSkill: …
description: str

The description of the skill.

name: str

The name of the skill.

Inline skill payload

type: Literal["inline"]

Defines an inline skill for this request.