glean-cli-chat

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean chat

glean chat

PREREQUISITE: Read
../glean-cli-shared/SKILL.md
for auth, global flags, and security rules.
Have a conversation with Glean AI. Streams response to stdout.
bash
glean chat [flags]
前提条件: 阅读
../glean-cli-shared/SKILL.md
了解身份验证、全局参数和安全规则。
与Glean AI进行对话,响应将以流的形式输出到标准输出。
bash
glean chat [flags]

Flags

参数

FlagTypeDefaultDescription
--dry-run
booleanfalsePrint request body without sending
--json
stringComplete JSON chat request body (overrides individual flags)
--message
stringChat message (positional arg) (required)
--save
booleantrueSave the chat session
--timeout
integer30000Request timeout in milliseconds
参数类型默认值描述
--dry-run
布尔值false仅打印请求体而不实际发送
--json
字符串完整的JSON对话请求体(会覆盖其他独立参数)
--message
字符串对话消息(位置参数)(必填)
--save
布尔值true保存对话会话
--timeout
整数30000请求超时时间,单位为毫秒

Examples

示例

bash
glean chat "What are the company holidays?"
glean chat --json '{"messages":[{"author":"USER","messageType":"CONTENT","fragments":[{"text":"What is Glean?"}]}]}'
bash
glean chat "What are the company holidays?"
glean chat --json '{"messages":[{"author":"USER","messageType":"CONTENT","fragments":[{"text":"What is Glean?"}]}]}'

Discovering Commands

查找更多命令

bash
undefined
bash
undefined

Show machine-readable schema for this command

展示该命令的机器可读schema

glean schema chat
glean schema chat

List all available commands

列出所有可用命令

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