Documentation
¶
Index ¶
- type ArtifactConfiguration
- type ArtifactView
- type AuthorizerConfiguration
- type BrowserTool
- type BrowserToolSession
- type Certificate
- type CertificateLocation
- type CodeConfiguration
- type CodeInterpreter
- type CodeInterpreterResult
- type CodeInterpreterSession
- type CodeView
- type ContentBlock
- type Env
- type EnvConfiguration
- type Filter
- type ImageConfiguration
- type ImageView
- type InputContentBlock
- type InvokeRuntimeBody
- type LifecycleConfiguration
- type LifecycleView
- type NetworkConfiguration
- type NetworkView
- type OssLocationConfiguration
- type OssLocationView
- type ResourceContent
- type RuntimeEndpointInfo
- type RuntimeVersionView
- type RuntimeView
- type SecretsManagerLocation
- type Tag
- type TagFilter
- type ToolArguments
- type ToolResultStructuredContent
- type VersionSessionView
- type VpcConfiguration
- type VpcSpec
- type VpcView
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 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 EnvConfiguration ¶
type ImageConfiguration ¶
type ImageConfiguration struct {
/* 镜像地址 */
ImageUrl string `json:"imageUrl"`
}
type InputContentBlock ¶
type InvokeRuntimeBody ¶
type InvokeRuntimeBody struct {
/* 任意 JSON 内容,作为业务载荷透传给 Runtime 实例
- 结构由 Runtime 实例自己定义
- Gateway 不做任何解析和验证 (Optional) */
AnyField interface{} `json:"anyField"`
}
type LifecycleConfiguration ¶
type LifecycleConfiguration struct {
/* Session 会话从创建到自动终止的最长时间(秒),取值范围 60~28800,默认 28800 (Optional) */
MaxLifeTime *int `json:"maxLifeTime"`
}
type LifecycleView ¶
type LifecycleView struct {
/* runtime 的 session 存活的最长时间 (Optional) */
MaxLifeTime int `json:"maxLifeTime"`
}
type NetworkConfiguration ¶
type NetworkView ¶
type OssLocationView ¶
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 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) */
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"`
/* 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 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 VpcConfiguration ¶
Source Files
¶
- ArtifactConfiguration.go
- ArtifactView.go
- AuthorizerConfiguration.go
- BrowserTool.go
- BrowserToolSession.go
- Certificate.go
- CertificateLocation.go
- CodeConfiguration.go
- CodeInterpreter.go
- CodeInterpreterResult.go
- CodeInterpreterSession.go
- CodeView.go
- ContentBlock.go
- Env.go
- EnvConfiguration.go
- Filter.go
- ImageConfiguration.go
- ImageView.go
- InputContentBlock.go
- InvokeRuntimeBody.go
- LifecycleConfiguration.go
- LifecycleView.go
- NetworkConfiguration.go
- NetworkView.go
- OssLocationConfiguration.go
- OssLocationView.go
- ResourceContent.go
- RuntimeEndpointInfo.go
- RuntimeVersionView.go
- RuntimeView.go
- SecretsManagerLocation.go
- Tag.go
- TagFilter.go
- ToolArguments.go
- ToolResultStructuredContent.go
- VersionSessionView.go
- VpcConfiguration.go
- VpcSpec.go
- VpcView.go
Click to show internal directories.
Click to hide internal directories.