models

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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) */
	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"`

	/* 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 {

	/* 挂载目标ID。 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* CFS 路径,可以不填,默认值为 /cfs。 (Optional) */
	Path *string `json:"path"`

	/* 挂载在 Runtime 内的路径。MountPath 必须是绝对路径,即以 '/' 开头;不允许是 /、/bin、/usr、/var/run、/proc、/sys、/dev 系统路径;多个挂载点不能互为父子路径,例如 /mnt 和 /mnt/data。 (Optional) */
	MountPath *string `json:"mountPath"`

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

type CfsAccessPointView

type CfsAccessPointView struct {

	/* 挂载目标ID (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* CFS 路径 (Optional) */
	Path string `json:"path"`

	/* 挂载在 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) */
	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"`

	/* 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。 (Optional) */
	OssAccessPoints []OssAccessPointConfiguration `json:"ossAccessPoints"`

	/* CFS 访问点配置列表。 (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 {

	/* 镜像地址  */
	ImageUrl string `json:"imageUrl"`
}

type ImageView

type ImageView struct {

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

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 会话从创建到自动终止的最长时间(秒),取值范围 0~28800,默认 28800。当值为 0 时,生成的Session不会自动终止。 (Optional) */
	MaxLifeTime *int `json:"maxLifeTime"`
}

type LifecycleView

type LifecycleView struct {

	/* runtime 的 session 存活的最长时间 (Optional) */
	MaxLifeTime int `json:"maxLifeTime"`
}

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 个字符之间,仅能由小写字母、数字、连字符(-)组成,且必须以小写字母或数字开头和结尾。 (Optional) */
	BucketName *string `json:"bucketName"`

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

	/* 挂载在 Runtime 内的路径。MountPath 必须是绝对路径,即以 '/' 开头;不允许是 /、/etc、/bin、/usr、/var/run、/proc、/sys、/dev 等系统路径;多个挂载点不能互为父子路径,例如 /mnt 和 /mnt/data。 (Optional) */
	MountPath *string `json:"mountPath"`
}

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"`
}

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 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 RuntimeEndpointInfo

type RuntimeEndpointInfo struct {

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

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

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

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"`

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

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

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

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

	/* 当前版本创建时间 (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) */
	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