alicloud-compute-fc-agentrun

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Category: 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
    references/endpoints.md
    ). If unsure, choose the most reasonable region for the task or ask the user.
  • Use OpenAPI Explorer or official SDK to avoid manual signing (ROA requires SignatureV1).
  • 通过RAM用户获取AccessKey(遵循最小权限原则)。
  • 选择正确的区域端点(请查看
    references/endpoints.md
    )。若不确定,请选择与任务最匹配的区域,或咨询用户。
  • 使用OpenAPI Explorer或官方SDK以避免手动签名(ROA要求使用SignatureV1)。

Workflow

工作流

  1. Choose region endpoint (
    agentrun.cn-<region>.aliyuncs.com
    ).
  2. Create runtime → publish version → create runtime endpoint.
  3. Create sandbox/template if needed.
  4. Configure credentials and model services as required.
  5. Query resources for troubleshooting.
  1. 选择区域端点(
    agentrun.cn-<region>.aliyuncs.com
    )。
  2. 创建运行时 → 发布版本 → 创建运行时端点。
  3. 如有需要,创建沙箱/模板。
  4. 根据需求配置凭证和模型服务。
  5. 查询资源以进行问题排查。

API Groups

API分组

See
references/api_overview.md
for the full API list and grouping.
有关完整的API列表和分组信息,请查看
references/api_overview.md

Script quickstart

脚本快速入门

bash
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.py
Environment variables:
  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • OUTPUT_DIR
    (optional)
bash
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.py
环境变量:
  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_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.py
Environment variables:
  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_NAME
  • AGENTRUN_RUNTIME_ENDPOINT_NAME
  • AGENTRUN_RUNTIME_DESC
    (optional)
  • OUTPUT_DIR
    (optional)
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_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_NAME
  • AGENTRUN_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.py
Environment variables:
  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_ID
  • AGENTRUN_RUNTIME_ENDPOINT_ID
  • OUTPUT_DIR
    (optional)
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_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_ID
  • AGENTRUN_RUNTIME_ENDPOINT_ID
  • OUTPUT_DIR
    (可选)

SDK Notes

SDK说明

See
references/sdk.md
for SDK acquisition guidance.
有关SDK获取指南,请查看
references/sdk.md

Output 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