用途:glean-agents 属于 Glean CLI,用于管理并运行 Glean AI 智能体,适合发现可用智能体、查看智能体结构,或以编程方式调用智能体。
主要能力:提供 list、get、schemas、run 四个子命令。list 列出所有可用智能体;get 获取指定智能体的详情;schemas 获取某智能体的输入/输出结构;run 运行智能体。
使用方式:命令形式为 glean agents <subcommand> [flags]。可用参数包括 --dry-run(布尔,默认 false)、--json(字符串,JSON 请求体)、--output(json | ndjson | text,默认 json)。示例:glean agents list | jq '.[].id';glean agents run --json '{"agentId":"my-agent","input":{"query":"test"}}'。
发现命令:可用 glean schema agents 查看该命令的机器可读结构,或用 glean schema | jq '.commands' 列出所有可用命令。
限制:使用前必须先阅读 ../glean-shared/SKILL.md,了解认证、全局参数与安全规则。资料未提供具体认证方式、权限范围、速率限制、计费信息及智能体运行效果等细节。