关于 alicloud-compute-fc-agentrun
此技能通过 Function Compute AgentRun OpenAPI 管理运行时、沙箱、模型服务、记忆和凭据,面向配置及维护这些资源的云服务工作流。它提供运行时创建、发布、端点配置和清理脚本。
主要功能
- 01管理运行时及端点
- 02创建沙箱或模板
- 03配置模型服务与凭据
- 04查询资源以排查问题
- 05提供运行时创建和清理脚本
适用场景
- 01创建并发布运行时版本
- 02为运行时配置服务端点
- 03按需创建沙箱或模板
- 04排查 AgentRun 资源状态
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ cinience/ alicloud-skills --skill alicloud-compute-fc-agentrun安装后在 Claude Code 中输入/alicloud-compute-fc-agentrun确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
agents/openai.yamlreferences/api_overview.mdendpoints.mdsdk.mdsources.mdscripts/cleanup_runtime.pyquickstart.pyruntime_flow.py详细介绍
Category: 服务
Function Compute AgentRun(OpenAPI)
使用 AgentRun OpenAPI(ROA)管理运行时、沙箱、模型服务、内存和凭证。
前置条件
- 通过 RAM 用户使用 AccessKey(遵循最小权限原则)。
- 选择正确的区域端点(参见
references/endpoints.md)。如果不确定,请为任务选择最合适的区域,或询问用户。 - 使用 OpenAPI Explorer 或官方 SDK,避免手动签名(ROA 要求 SignatureV1)。
工作流
- 选择区域端点(
agentrun.cn-<region>.aliyuncs.com)。 - 创建运行时 → 发布版本 → 创建运行时端点。
- 如有需要,创建沙箱/模板。
- 根据需要配置凭证和模型服务。
- 查询资源以排查问题。
API 分组
完整的 API 列表和分组请参见 references/api_overview.md。
脚本快速入门
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.py
环境变量:
AGENTRUN_ENDPOINTALICLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_SECRETOUTPUT_DIR(可选)
运行时流程脚本
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_NAMEAGENTRUN_RUNTIME_DESC(可选)OUTPUT_DIR(可选)
清理脚本
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_IDOUTPUT_DIR(可选)
SDK 说明
SDK 获取指南请参见 references/sdk.md。
输出策略
如果要保存生成的文件或响应,请将其写入:
output/compute-fc-agentrun/。
验证
mkdir -p output/alicloud-compute-fc-agentrun
for f in skills/compute/fc/alicloud-compute-fc-agentrun/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-compute-fc-agentrun/validate.txt
通过标准:命令以 0 退出,且生成 output/alicloud-compute-fc-agentrun/validate.txt。
输出和证据
- 将工件、命令输出和 API 响应摘要保存到
output/alicloud-compute-fc-agentrun/。 - 在证据文件中包含关键参数(区域/资源 ID/时间范围),以便复现。
参考资料
-
API 概览和操作列表:
references/api_overview.md -
区域端点:
references/endpoints.md -
SDK 指南:
references/sdk.md -
来源列表:
references/sources.md
评论
支持 Markdown