Skip to content

查看智能体运行时详情

info 命令是查看智能体运行时线上资源详情的命令。

命令解析

当执行命令 info -h / info --help 命令时,可以获取帮助文档。

参数解析

当前命令支持部分全局参数(例如 -a/--access, --debug 等),详情可参考 Serverless Devs 全局参数文档

操作案例

  • 有资源描述文件(Yaml)时,可以直接执行 s info 获取智能体运行时详情;

上述命令的执行结果示例:

agentrun-info-test:
  region:   cn-hangzhou
  agent:
    id:           1062cdd0-042e-407b-8a3f-234370c2c68c
    arn:          acs:agentrun:cn-hangzhou:1583208943291465:runtimes/1062cdd0-042e-407b-8a3f-234370c2c68c
    name:         my-runtime
    description:  My Agent Runtime
    artifactType: Code
    status:       READY
    resources: 
      cpu:        1
      memory:     2048
      port:       8000
    timestamps: 
      createdAt:     2025-01-10T07:07:33Z
      lastUpdatedAt: 2025-01-10T08:32:03Z
    endpoints: 
      - 
        id:          b8db2461-bae3-4a80-aa66-1e2ccbbb7fb6
        name:        production
        url:         https://xxx.agentrun-data.cn-hangzhou.aliyuncs.com/.../invocations
        version:     LATEST
        status:      READY
        description: Production endpoint

权限与策略说明

使用该命令时,推荐配置系统策略:AliyunAgentRunReadOnlyAccess