models

package
v1.69.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactConfiguration

type ArtifactConfiguration struct {

	/* 通过镜像导入,需指定京东云容器镜像仓库地址。 (Optional) */
	Image *ImageConfiguration `json:"image"`
}

type ArtifactView

type ArtifactView struct {

	/* 镜像信息 (Optional) */
	Image ImageView `json:"image"`
}

type AuthorizerConfiguration

type AuthorizerConfiguration struct {

	/* 鉴权类型,当前支持 API_KEY。  */
	Type string `json:"type"`
}

type BrowserTool

type BrowserTool struct {

	/* Browser Tool ID (Optional) */
	BrowserToolId string `json:"browserToolId"`

	/* Browser Tool 名称 (Optional) */
	Name string `json:"name"`

	/* Browser Tool 描述信息 (Optional) */
	Description string `json:"description"`

	/* Browser Tool API Key (Optional) */
	ApiKey string `json:"apiKey"`

	/* Browser Tool 状态。可选值:`pending`(已受理,等待资源准备)、`ready`(可创建 Session)、`failed`(处理失败)、`deleting`(删除中)、`deleted`(已删除) (Optional) */
	State string `json:"state"`

	/* 网络配置类型 (Optional) */
	Network string `json:"network"`

	/* Browser Tool 资源配置;未记录规格时不返回 (Optional) */
	Resource ResourceView `json:"resource"`

	/* Browser Tool 的云日志投递配置 (Optional) */
	LogConfigurationView LogConfigurationView `json:"logConfigurationView"`

	/* Browser Tool 绑定的用户标签 (Optional) */
	Tags []Tag `json:"tags"`

	/* Browser Tool 所属资源组 ID (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* Browser Tool 创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type BrowserToolSession

type BrowserToolSession struct {

	/* Browser Tool ID (Optional) */
	BrowserToolId string `json:"browserToolId"`

	/* browser tool 名字 (Optional) */
	Name string `json:"name"`

	/* Session ID (Optional) */
	SessionId string `json:"sessionId"`

	/* Session 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(初始化中)、`ready`(可连接使用)、`deleting`(删除中)、`deleted`(已删除)、`failed`(初始化失败) (Optional) */
	State string `json:"state"`

	/* 是否开启长程运行 (Optional) */
	Persistent bool `json:"persistent"`

	/* Session 最大生命周期,单位为秒;长程运行时不生效 (Optional) */
	MaxLifeTime int `json:"maxLifeTime"`

	/* Chrome DevTools Protocol WebSocket 地址;通常仅当 `state` 为 `ready` 时可用 (Optional) */
	CdpEndpoint string `json:"cdpEndpoint"`

	/* VNC 访问地址;通常仅当 `state` 为 `ready` 时可用 (Optional) */
	VncEndpoint string `json:"vncEndpoint"`

	/* 访问 VNC 的校验 Token;通常仅当 `state` 为 `ready` 时可用 (Optional) */
	VncAccessToken string `json:"vncAccessToken"`

	/* Session 失败原因;仅当 `state` 为 `failed` 时通常有值 (Optional) */
	FailureReason string `json:"failureReason"`

	/* Session 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* Session 过期时间 (Optional) */
	ExpireTime string `json:"expireTime"`
}

type Certificate

type Certificate struct {

	/* 证书位置  */
	Location CertificateLocation `json:"location"`
}

type CertificateLocation

type CertificateLocation struct {

	/* Secrets Manager 位置配置 (Optional) */
	SecretsManager SecretsManagerLocation `json:"secretsManager"`
}

type CfsAccessPointConfiguration

type CfsAccessPointConfiguration struct {

	/* CFS 文件系统 ID。长度不能超过 64 个字符,必须以字母或数字开头,仅支持字母、数字、点号(.)、下划线(_)、冒号(:)和连字符(-)。同一个 Runtime 中不能重复配置相同的文件系统 ID。  */
	FileSystemId string `json:"fileSystemId"`

	/* 挂载在 Runtime 内的路径。必须位于 /mnt 的子目录下,不能直接使用 /mnt;所有 OSS、CFS 和镜像卷挂载点不能相同,也不能互为父子路径。  */
	MountPath string `json:"mountPath"`

	/* 文件系统是否只读。 (Optional) */
	ReadOnly *bool `json:"readOnly"`
}

type CfsAccessPointView

type CfsAccessPointView struct {

	/* CFS 文件系统 ID (Optional) */
	FileSystemId string `json:"fileSystemId"`

	/* 挂载在 Runtime 内的路径 (Optional) */
	MountPath string `json:"mountPath"`

	/* 文件系统是否只读 (Optional) */
	ReadOnly bool `json:"readOnly"`
}

type CodeConfiguration

type CodeConfiguration struct {

	/* 代码位置,S3 链接  */
	OssLocation OssLocationConfiguration `json:"ossLocation"`

	/* 代码入口,运行时调用的函数或方法  */
	EntryPoint string `json:"entryPoint"`

	/* 运行环境,如 PYTHON_3_10 或 PYTHON_3_11等  */
	RuntimeEnvironment string `json:"runtimeEnvironment"`
}

type CodeInterpreter

type CodeInterpreter struct {

	/* Code Interpreter ID (Optional) */
	CodeInterpreterId string `json:"codeInterpreterId"`

	/* Code Interpreter 名称 (Optional) */
	Name string `json:"name"`

	/* Code Interpreter 描述信息 (Optional) */
	Description string `json:"description"`

	/* 用于鉴权的 API Key 的值 (Optional) */
	ApiKey string `json:"apiKey"`

	/* 失败原因;仅当 `state` 为 `failed` 时通常有值 (Optional) */
	FailureReason string `json:"failureReason"`

	/* Code Interpreter 状态。可选值:`pending`(已受理,等待资源准备)、`ready`(可创建 Session)、`failed`(处理失败)、`deleting`(删除中)、`deleted`(已删除) (Optional) */
	State string `json:"state"`

	/* 网络配置类型 (Optional) */
	Network string `json:"network"`

	/* Code Interpreter 资源配置;未记录规格时不返回 (Optional) */
	Resource ResourceView `json:"resource"`

	/* Code Interpreter 的云日志投递配置 (Optional) */
	LogConfigurationView LogConfigurationView `json:"logConfigurationView"`

	/* Code Interpreter 绑定的用户标签 (Optional) */
	Tags []Tag `json:"tags"`

	/* Code Interpreter 所属资源组 ID (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* Code Interpreter 创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type CodeInterpreterResult

type CodeInterpreterResult struct {

	/* 执行输出内容块列表  */
	Content []ContentBlock `json:"content"`

	/* 是否为错误结果 (Optional) */
	IsError bool `json:"isError"`

	/* 结构化执行结果 (Optional) */
	StructuredContent ToolResultStructuredContent `json:"structuredContent"`
}

type CodeInterpreterSession

type CodeInterpreterSession struct {

	/* Code Interpreter ID (Optional) */
	CodeInterpreterId string `json:"codeInterpreterId"`

	/* Session ID (Optional) */
	SessionId string `json:"sessionId"`

	/* Session 名称 (Optional) */
	Name string `json:"name"`

	/* Session 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(初始化中)、`ready`(可执行工具调用)、`deleting`(删除中)、`deleted`(已删除)、`failed`(初始化失败) (Optional) */
	State string `json:"state"`

	/* 是否开启长程运行 (Optional) */
	Persistent bool `json:"persistent"`

	/* Session 最大生命周期,单位为秒;长程运行时不生效 (Optional) */
	MaxLifeTime int `json:"maxLifeTime"`

	/* Session 创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type CodeView

type CodeView struct {

	/* 代码位置,S3 链接 (Optional) */
	OssLocation OssLocationView `json:"ossLocation"`

	/* 代码入口,运行时调用的函数或方法 (Optional) */
	EntryPoint string `json:"entryPoint"`

	/* 运行环境,如 PYTHON_3_10 或 PYTHON_3_11 (Optional) */
	RuntimeEnvironment string `json:"runtimeEnvironment"`
}

type ContentBlock

type ContentBlock struct {

	/* 内容类型,支持 text、image、resource、resource_link  */
	Type string `json:"type"`

	/* Base64 编码二进制内容 (Optional) */
	Data string `json:"data"`

	/* 内容描述 (Optional) */
	Description string `json:"description"`

	/* MIME 类型 (Optional) */
	MimeType string `json:"mimeType"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 资源内容 (Optional) */
	Resource ResourceContent `json:"resource"`

	/* 内容大小(字节) (Optional) */
	Size int64 `json:"size"`

	/* 文本内容 (Optional) */
	Text string `json:"text"`

	/* 内容 URI (Optional) */
	Uri string `json:"uri"`
}

type Env

type Env struct {

	/* 运行时环境变量键  */
	Key string `json:"key"`

	/* 运行时环境变量值  */
	Value string `json:"value"`
}

type EnvConfiguration

type EnvConfiguration struct {

	/* 运行时环境变量键,最大长度为256  */
	Key string `json:"key"`

	/* 运行时环境变量值,最大长度为16384  */
	Value string `json:"value"`
}

type FileSystemConfiguration

type FileSystemConfiguration struct {

	/* OSS 访问点配置列表。配置 ossAccessPointConfiguration 时,必须指定 RoleName。OSS 和 CFS 访问点总数最多为 5。 (Optional) */
	OssAccessPoints []OssAccessPointConfiguration `json:"ossAccessPoints"`

	/* CFS 访问点配置列表。OSS 和 CFS 访问点总数最多为 5。 (Optional) */
	CfsAccessPoints []CfsAccessPointConfiguration `json:"cfsAccessPoints"`
}

type FileSystemView

type FileSystemView struct {

	/* OSS 访问点配置列表 (Optional) */
	OssAccessPoints []OssAccessPointView `json:"ossAccessPoints"`

	/* CFS 访问点配置列表 (Optional) */
	CfsAccessPoints []CfsAccessPointView `json:"cfsAccessPoints"`
}

type Filter

type Filter struct {

	/* 过滤键  */
	Name string `json:"name"`

	/* 过滤操作符,支持eq (Optional) */
	Operator *string `json:"operator"`

	/* 过滤值 (Optional) */
	Values []string `json:"values"`
}

type ImageConfiguration

type ImageConfiguration struct {

	/* 镜像地址。创建 Runtime 时必填;更新时不传则沿用当前版本的镜像。 (Optional) */
	ImageUrl *string `json:"imageUrl"`

	/* 覆盖镜像的启动入口(ENTRYPOINT),按数组顺序执行;不传沿用当前配置,更新时传空数组恢复镜像默认启动入口。 (Optional) */
	Command []string `json:"command"`

	/* 覆盖镜像的启动参数(CMD);不传沿用当前配置,更新时传空数组恢复镜像默认启动参数。 (Optional) */
	Args []string `json:"args"`

	/* 镜像内服务监听端口,取值范围 1~65535。创建时可选;更新时仅当 Runtime 当前生效版本已有自定义端口才可传入新端口,不传则沿用当前端口。不能在更新时新增或删除自定义端口。端口声明不会改变镜像内进程实际监听的端口。 (Optional) */
	Port *int `json:"port"`
}

type ImageView

type ImageView struct {

	/* 镜像地址 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 当前版本覆盖镜像 ENTRYPOINT 的启动入口;未设置时不返回。 (Optional) */
	Command []string `json:"command"`

	/* 当前版本覆盖镜像 CMD 的启动参数;未设置时不返回。 (Optional) */
	Args []string `json:"args"`

	/* 当前版本声明的服务端口;未设置时不返回,并使用协议默认端口。 (Optional) */
	Port int `json:"port"`
}

type ImageVolume

type ImageVolume struct {

	/* 镜像卷的源镜像地址,去除首尾空白后不能为空。  */
	ImageUri string `json:"imageUri"`

	/* 挂载在 Runtime 内的绝对路径。去除首尾空白并规范化路径后,必须位于 /mnt 的子目录下,不能直接使用 /mnt;不能与其他镜像卷、OSS 或 CFS 挂载点相同,也不能互为父子路径。  */
	MountPath string `json:"mountPath"`
}

type InputContentBlock

type InputContentBlock struct {

	/* 输入内容路径,长度范围0~100000000  */
	Path string `json:"path"`

	/* Base64 编码的二进制内容,长度范围0~100000000 (Optional) */
	Blob string `json:"blob"`

	/* 文本输入内容,长度范围0~100000000 (Optional) */
	Text string `json:"text"`
}

type InvokeRuntimeBody

type InvokeRuntimeBody struct {

	/* 任意 JSON 内容,作为业务载荷透传给 Runtime 实例
	- 结构由 Runtime 实例自己定义
	- Gateway 不做任何解析和验证 (Optional) */
	AnyField interface{} `json:"anyField"`
}

type LifecycleConfiguration

type LifecycleConfiguration struct {

	/* 是否开启长程运行。开启后 Session 不受最大生命周期限制,需要主动删除。 (Optional) */
	Persistent *bool `json:"persistent"`

	/* Session 最大生命周期,单位为秒。仅在 persistent 为 false 时生效,取值范围为 60~28800,默认值为 28800。 (Optional) */
	MaxLifeTime *int `json:"maxLifeTime"`
}

type LifecycleView

type LifecycleView struct {

	/* 是否开启长程运行 (Optional) */
	Persistent bool `json:"persistent"`

	/* Session 最大生命周期,单位为秒;长程运行时不生效 (Optional) */
	MaxLifeTime int `json:"maxLifeTime"`
}

type LogConfiguration

type LogConfiguration struct {

	/* 是否启用云日志投递。设置为 false 时关闭日志投递,其他字段不生效。  */
	Enabled bool `json:"enabled"`

	/* 日志集 ID。enabled 为 true 时必填,必须属于当前账号和资源所在地域。 (Optional) */
	LogsetId *string `json:"logsetId"`

	/* 日志主题 ID。enabled 为 true 时必填,必须属于指定日志集。 (Optional) */
	LogtopicId *string `json:"logtopicId"`

	/* 是否采集主容器的标准输出和标准错误。enabled 为 true 时,未指定该字段按 true 处理。 (Optional) */
	CollectStandardOutput *bool `json:"collectStandardOutput"`

	/* 主容器内需要采集的自定义日志文件路径,最多 10 个;路径必须以 / 开头,支持通配符。 (Optional) */
	CustomFilePaths []string `json:"customFilePaths"`
}

type LogConfigurationView

type LogConfigurationView struct {

	/* 是否启用云日志投递 (Optional) */
	Enabled bool `json:"enabled"`

	/* 日志集 ID (Optional) */
	LogsetId string `json:"logsetId"`

	/* 日志主题 ID (Optional) */
	LogtopicId string `json:"logtopicId"`

	/* 是否采集主容器的标准输出和标准错误 (Optional) */
	CollectStandardOutput bool `json:"collectStandardOutput"`

	/* 主容器内需要采集的自定义日志文件路径 (Optional) */
	CustomFilePaths []string `json:"customFilePaths"`
}

type NetworkConfiguration

type NetworkConfiguration struct {

	/* 是否具备访问公网的能力  */
	EnablePublicNetwork bool `json:"enablePublicNetwork"`

	/* 是否具备在沙盒环境执行能力 (Optional) */
	EnableSandbox *bool `json:"enableSandbox"`
}

type NetworkView

type NetworkView struct {

	/* 是否具备访问公网的能力 (Optional) */
	EnablePublicNetwork bool `json:"enablePublicNetwork"`

	/* 是否具备在沙盒环境执行能力 (Optional) */
	EnableSandbox bool `json:"enableSandbox"`
}

type OssAccessPointConfiguration

type OssAccessPointConfiguration struct {

	/* OSS Bucket 名称。长度必须在 3~63 个字符之间,仅能由小写字母、数字、连字符(-)组成,且必须以小写字母或数字开头和结尾。  */
	BucketName string `json:"bucketName"`

	/* OSS Bucket 内的文件夹路径。文件夹名称全路径长度不能超过 1022 个字节,不能包含反斜杠(\)或双斜杠(//),且文件夹不能以斜杠(/)开头。 (Optional) */
	BucketPath *string `json:"bucketPath"`

	/* 挂载在 Runtime 内的路径。必须位于 /mnt 的子目录下,不能直接使用 /mnt;所有 OSS、CFS 和镜像卷挂载点不能相同,也不能互为父子路径。  */
	MountPath string `json:"mountPath"`

	/* 是否以只读方式挂载 OSS,默认 false,表示可读写。 (Optional) */
	ReadOnly *bool `json:"readOnly"`
}

type OssAccessPointView

type OssAccessPointView struct {

	/* OSS Bucket 名称 (Optional) */
	BucketName string `json:"bucketName"`

	/* OSS Bucket 内的文件夹路径 (Optional) */
	BucketPath string `json:"bucketPath"`

	/* 挂载在 Runtime 内的路径 (Optional) */
	MountPath string `json:"mountPath"`

	/* 是否以只读方式挂载 OSS,false 表示可读写。 (Optional) */
	ReadOnly bool `json:"readOnly"`
}

type OssLocationConfiguration

type OssLocationConfiguration struct {

	/* 包含存储数据的 S3 存储桶名称  */
	Bucket string `json:"bucket"`

	/* S3 存储桶中对象的前缀  */
	Prefix string `json:"prefix"`

	/* S3 对象的版本 ID  */
	VersionId string `json:"versionId"`
}

type OssLocationView

type OssLocationView struct {

	/* 包含存储数据的 S3 存储桶名称 (Optional) */
	Bucket string `json:"bucket"`

	/* S3 存储桶中对象的前缀 (Optional) */
	Prefix string `json:"prefix"`

	/* S3 对象的版本 ID (Optional) */
	VersionId string `json:"versionId"`
}

type ResourceConfiguration

type ResourceConfiguration struct {

	/* CPU 和内存规格  */
	Specification *ResourceSpecification `json:"specification"`
}

type ResourceContent

type ResourceContent struct {

	/* 资源内容类型,支持 text、blob  */
	Type string `json:"type"`

	/* Base64 编码的二进制资源内容 (Optional) */
	Blob string `json:"blob"`

	/* 资源 MIME 类型 (Optional) */
	MimeType string `json:"mimeType"`

	/* 文本资源内容 (Optional) */
	Text string `json:"text"`

	/* 资源 URI (Optional) */
	Uri string `json:"uri"`
}

type ResourceSpecification

type ResourceSpecification struct {

	/* CPU 核数,单位为 vCPU。当前支持 1、2、4、8、16。  */
	Cpu float32 `json:"cpu"`

	/* 内存大小,单位为 GiB。须与 CPU 组成 1:2、1:4 或 1:8 的配比。  */
	Memory float32 `json:"memory"`
}

type ResourceSpecificationView

type ResourceSpecificationView struct {

	/* CPU 核数,单位为 vCPU。 (Optional) */
	Cpu float32 `json:"cpu"`

	/* 内存大小,单位为 GiB。 (Optional) */
	Memory float32 `json:"memory"`
}

type ResourceView

type ResourceView struct {

	/* CPU 和内存规格 (Optional) */
	Specification ResourceSpecificationView `json:"specification"`
}

type RuntimeEndpointInfo

type RuntimeEndpointInfo struct {

	/* runtime ID (Optional) */
	RuntimeId string `json:"runtimeId"`

	/* 公网访问 endpoint (Optional) */
	PublicEndpoint string `json:"publicEndpoint"`

	/* 私网访问 endpoint (Optional) */
	InternalEndpoint string `json:"internalEndpoint"`
}

type RuntimeSessionView

type RuntimeSessionView struct {

	/* Session ID (Optional) */
	SessionId string `json:"sessionId"`

	/* Session 创建时间,RFC 3339 格式 (Optional) */
	CreateTime string `json:"createTime"`
}

type RuntimeVersionView

type RuntimeVersionView struct {

	/* Runtime 版本号 (Optional) */
	Version string `json:"version"`

	/* 当前版本镜像信息 (Optional) */
	Artifact ArtifactView `json:"artifact"`

	/* 当前版本网络配置信息 (Optional) */
	Network NetworkView `json:"network"`

	/* Runtime 版本状态。可选值:`pending`(已受理,等待资源准备)、`creating`(创建中)、`running`(可正常使用)、`failed`(处理失败)、`deleted`(已删除) (Optional) */
	State string `json:"state"`

	/* 当前版本的描述信息 (Optional) */
	VersionDescription string `json:"versionDescription"`

	/* 预热 Session 数 (Optional) */
	WarmSession int `json:"warmSession"`

	/* 最大 Session 数 (Optional) */
	MaxSession int `json:"maxSession"`

	/* 当前版本的资源配置;未记录规格时不返回 (Optional) */
	Resource ResourceView `json:"resource"`

	/* Runtime 协议 (Optional) */
	Protocol string `json:"protocol"`

	/* Runtime 存活周期配置 (Optional) */
	Lifecycle LifecycleView `json:"lifecycle"`

	/* 当前 Runtime 版本的云日志投递配置 (Optional) */
	LogConfigurationView LogConfigurationView `json:"logConfigurationView"`

	/* 环境变量信息 (Optional) */
	Envs []Env `json:"envs"`

	/* 当前版本文件系统配置 (Optional) */
	FileSystem FileSystemView `json:"fileSystem"`

	/* 当前版本的只读镜像卷配置,未配置时不返回。仅包含源镜像地址和挂载路径。 (Optional) */
	ImageVolumes []ImageVolume `json:"imageVolumes"`

	/* 当前版本创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type RuntimeView

type RuntimeView struct {

	/* Runtime ID (Optional) */
	RuntimeId string `json:"runtimeId"`

	/* Runtime 名称 (Optional) */
	Name string `json:"name"`

	/* Runtime 当前生效的默认版本号 (Optional) */
	CurrentVersion string `json:"currentVersion"`

	/* 本次查询返回的 Runtime 版本号;未指定查询版本时,通常与 `currentVersion` 一致 (Optional) */
	QueriedVersion string `json:"queriedVersion"`

	/* Runtime 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(创建中)、`running`(可正常调用)、`updating`(版本或配置更新中)、`failed`(处理失败)、`deleted`(已删除,不可继续使用) (Optional) */
	State string `json:"state"`

	/* Runtime 描述信息 (Optional) */
	Description string `json:"description"`

	/* 本次查询返回的 Runtime 版本详情;其中 `state` 表示该版本自身状态 (Optional) */
	VersionView RuntimeVersionView `json:"versionView"`

	/* 访问 agent 的 APIKey (Optional) */
	ApiKey string `json:"apiKey"`

	/* 绑定 IAM 角色名 (Optional) */
	RoleName string `json:"roleName"`

	/* Runtime 绑定的用户标签 (Optional) */
	Tags []Tag `json:"tags"`

	/* Runtime 所属资源组 ID (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* Runtime 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* Runtime 最近一次更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type SecretsManagerLocation

type SecretsManagerLocation struct {

	/* 存放证书的 Secrets Manager ARN  */
	SecretArn string `json:"secretArn"`
}

type Tag

type Tag struct {

	/* 标签键  */
	Key string `json:"key"`

	/* 标签值  */
	Value string `json:"value"`
}

type TagFilter

type TagFilter struct {

	/* 标签键  */
	Key string `json:"key"`

	/* 标签值列表 (Optional) */
	Values []string `json:"values"`
}

type ToolArguments

type ToolArguments struct {

	/* 是否清理上下文 (Optional) */
	ClearContext bool `json:"clearContext"`

	/* 代码执行内容,长度范围0~100000000 (Optional) */
	Code string `json:"code"`

	/* 命令执行内容,长度范围0~100000000 (Optional) */
	Command string `json:"command"`

	/* 输入内容块列表 (Optional) */
	Content []InputContentBlock `json:"content"`

	/* 目录路径 (Optional) */
	DirectoryPath string `json:"directoryPath"`

	/* 代码语言,支持 python、javascript、typescript (Optional) */
	Language string `json:"language"`

	/* 单文件路径,长度范围0~100000000 (Optional) */
	Path string `json:"path"`

	/* 多文件路径列表,长度范围0~100000000 (Optional) */
	Paths []string `json:"paths"`

	/* 运行时类型,支持 nodejs、deno、python (Optional) */
	Runtime string `json:"runtime"`

	/* 任务 ID (Optional) */
	TaskId string `json:"taskId"`
}

type ToolResultStructuredContent

type ToolResultStructuredContent struct {

	/* 执行耗时(毫秒) (Optional) */
	ExecutionTime float64 `json:"executionTime"`

	/* 进程退出码 (Optional) */
	ExitCode int `json:"exitCode"`

	/* 标准错误输出 (Optional) */
	Stderr string `json:"stderr"`

	/* 标准输出 (Optional) */
	Stdout string `json:"stdout"`

	/* 异步任务 ID (Optional) */
	TaskId string `json:"taskId"`

	/* 异步任务状态 (Optional) */
	TaskStatus string `json:"taskStatus"`
}

type VersionSessionView

type VersionSessionView struct {

	/* Runtime 版本号 (Optional) */
	Version string `json:"version"`

	/* 该版本当前生效的 Session 数量 (Optional) */
	SessionCount int `json:"sessionCount"`
}

type VpcConfiguration

type VpcConfiguration struct {

	/* 私有网络 ID  */
	VpcId string `json:"vpcId"`

	/* 子网 ID 列表  */
	SubnetIds []string `json:"subnetIds"`

	/* 安全组列表  */
	SecurityGroups []string `json:"securityGroups"`
}

type VpcSpec

type VpcSpec struct {

	/* 私有网络 ID  */
	VpcId string `json:"vpcId"`

	/* 子网 ID  */
	SubnetId string `json:"subnetId"`

	/* 安全组列表  */
	SecurityGroups []string `json:"securityGroups"`
}

type VpcView

type VpcView struct {

	/* 私有网络 ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 内网访问域名 (Optional) */
	InternalAccessDomain string `json:"internalAccessDomain"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL