glean-chat

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean chat

glean chat

PREREQUISITE: Read
../glean-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-shared/SKILL.md
了解认证、全局标志和安全规则。
与Glean AI进行对话。将响应流式输出到标准输出(stdout)。
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

显示该命令的机器可读模式

glean schema chat
glean schema chat

List all available commands

列出所有可用命令

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