glean-chat
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseglean chat
glean chat
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
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
标志
| Flag | Type | Default | Description |
|---|---|---|---|
| boolean | false | Print request body without sending |
| string | Complete JSON chat request body (overrides individual flags) | |
| string | Chat message (positional arg) (required) | |
| boolean | true | Save the chat session |
| integer | 30000 | Request timeout in milliseconds |
| 标志 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| 布尔值 | false | 打印请求体但不发送请求 |
| 字符串 | 完整的JSON聊天请求体(会覆盖单个标志) | |
| 字符串 | 聊天消息(位置参数)(必填) | |
| 布尔值 | true | 保存聊天会话 |
| 整数 | 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
undefinedbash
undefinedShow machine-readable schema for this command
显示该命令的机器可读模式
glean schema chat
glean schema chat
List all available commands
列出所有可用命令
glean schema | jq '.commands'
undefinedglean schema | jq '.commands'
undefined