glean-cli-agents

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean agents

glean agents

PREREQUISITE: Read
../glean-cli/SKILL.md
for auth, global flags, and security rules.
Manage and run Glean agents. Subcommands: list, get, schemas, run.
bash
glean agents <subcommand> [flags]
前置要求: 阅读
../glean-cli/SKILL.md
了解认证方式、全局标志和安全规则。
管理并运行Glean agents。子命令包括:list、get、schemas、run。
bash
glean agents <subcommand> [flags]

Subcommands

子命令

SubcommandDescription
get
Get details of a specific agent
list
List all available agents
run
Run an agent
schemas
Get input/output schemas for an agent
子命令描述
get
获取特定agent的详细信息
list
列出所有可用的agents
run
运行一个agent
schemas
获取agent的输入/输出架构

Flags

标志参数

FlagTypeDefaultDescription
--dry-run
booleanfalse
--json
stringJSON request body
--output
json | ndjson | textjson
标志类型默认值描述
--dry-run
布尔值false
--json
字符串JSON请求体
--output
json | ndjson | textjson

Examples

示例

bash
glean agents list | jq '.[].id'
glean agents run --json '{"agentId":"my-agent","input":{"query":"test"}}'
bash
glean agents list | jq '.[].id'
glean agents run --json '{"agentId":"my-agent","input":{"query":"test"}}'

Discovering Commands

命令探索

bash
undefined
bash
undefined

Show machine-readable schema for this command

显示该命令的机器可读架构

glean schema agents
glean schema agents

List all available commands

列出所有可用命令

glean schema | jq '.commands'
undefined
glean schema | jq '.commands'
undefined