glean-agents

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean agents

glean agents

PREREQUISITE: Read
../glean-shared/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-shared/SKILL.md
了解认证、全局标志和安全规则。
管理并运行Glean Agent。子命令包括: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
列出所有可用的Agent
run
运行一个Agent
schemas
获取Agent的输入/输出Schema

Flags

标志

FlagTypeDefaultDescription
--dry-run
booleanfalse
--json
stringJSON request body
--output
json | ndjson | textjson
标志类型默认值说明
--dry-run
booleanfalse
--json
stringJSON请求体
--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

显示此命令的机器可读Schema

glean schema agents
glean schema agents

List all available commands

列出所有可用命令

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