alicloud-compute-fc-agentrun
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: service
Category: service
Function Compute AgentRun (OpenAPI)
函数计算AgentRun(OpenAPI)
Use AgentRun OpenAPI (ROA) to manage runtimes, sandboxes, model services, memory, and credentials.
使用AgentRun OpenAPI(ROA)管理运行时、沙箱、模型服务、内存和凭证。
Prerequisites
前提条件
- AccessKey via RAM user (least privilege).
- Select the correct regional endpoint (see ). If unsure, choose the most reasonable region for the task or ask the user.
references/endpoints.md - Use OpenAPI Explorer or official SDK to avoid manual signing (ROA requires SignatureV1).
- 通过RAM用户获取AccessKey(遵循最小权限原则)。
- 选择正确的区域端点(请查看)。若不确定,请选择与任务最匹配的区域,或咨询用户。
references/endpoints.md - 使用OpenAPI Explorer或官方SDK以避免手动签名(ROA要求使用SignatureV1)。
Workflow
工作流
- Choose region endpoint ().
agentrun.cn-<region>.aliyuncs.com - Create runtime → publish version → create runtime endpoint.
- Create sandbox/template if needed.
- Configure credentials and model services as required.
- Query resources for troubleshooting.
- 选择区域端点()。
agentrun.cn-<region>.aliyuncs.com - 创建运行时 → 发布版本 → 创建运行时端点。
- 如有需要,创建沙箱/模板。
- 根据需求配置凭证和模型服务。
- 查询资源以进行问题排查。
API Groups
API分组
See for the full API list and grouping.
references/api_overview.md有关完整的API列表和分组信息,请查看。
references/api_overview.mdScript quickstart
脚本快速入门
bash
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.pyEnvironment variables:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRET- (optional)
OUTPUT_DIR
bash
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.py环境变量:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRET- (可选)
OUTPUT_DIR
Runtime flow script
运行时流程脚本
bash
AGENTRUN_RUNTIME_NAME="my-runtime" \\
AGENTRUN_RUNTIME_ENDPOINT_NAME="my-runtime-endpoint" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/runtime_flow.pyEnvironment variables:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRETAGENTRUN_RUNTIME_NAMEAGENTRUN_RUNTIME_ENDPOINT_NAME- (optional)
AGENTRUN_RUNTIME_DESC - (optional)
OUTPUT_DIR
bash
AGENTRUN_RUNTIME_NAME="my-runtime" \\
AGENTRUN_RUNTIME_ENDPOINT_NAME="my-runtime-endpoint" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/runtime_flow.py环境变量:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRETAGENTRUN_RUNTIME_NAMEAGENTRUN_RUNTIME_ENDPOINT_NAME- (可选)
AGENTRUN_RUNTIME_DESC - (可选)
OUTPUT_DIR
Cleanup script
清理脚本
bash
AGENTRUN_RUNTIME_ID="runtime-id" \\
AGENTRUN_RUNTIME_ENDPOINT_ID="endpoint-id" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/cleanup_runtime.pyEnvironment variables:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRETAGENTRUN_RUNTIME_IDAGENTRUN_RUNTIME_ENDPOINT_ID- (optional)
OUTPUT_DIR
bash
AGENTRUN_RUNTIME_ID="runtime-id" \\
AGENTRUN_RUNTIME_ENDPOINT_ID="endpoint-id" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/cleanup_runtime.py环境变量:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRETAGENTRUN_RUNTIME_IDAGENTRUN_RUNTIME_ENDPOINT_ID- (可选)
OUTPUT_DIR
SDK Notes
SDK说明
See for SDK acquisition guidance.
references/sdk.md有关SDK获取指南,请查看。
references/sdk.mdOutput Policy
输出策略
If you store any generated files or responses, write them under:
.
output/compute-fc-agentrun/如果您需要存储生成的文件或响应,请将其写入以下目录:。
output/compute-fc-agentrun/References
参考资料
-
API overview and operation list:
references/api_overview.md -
Regional endpoints:
references/endpoints.md -
SDK guidance:
references/sdk.md -
Source list:
references/sources.md
-
API概述与操作列表:
references/api_overview.md -
区域端点:
references/endpoints.md -
SDK指南:
references/sdk.md -
来源列表:
references/sources.md