-
Notifications
You must be signed in to change notification settings - Fork 18
fix(chat): document Google Chat Markdown formatting in tool descriptions #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| export const CHAT_FORMATTING_SHORT = [ | ||
|
Check failure on line 1 in workspace-server/src/utils/formatting/constants.ts
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need a license header here to clear lint. If you run |
||
| 'Google Chat formatting (not standard Markdown):', | ||
| '*bold* (single asterisk), _italic_ (single underscore),', | ||
| '~strikethrough~, `code`, bulleted lists ("* " or "- "),', | ||
| '<url|text> links, <users/{user}> mentions.', | ||
| 'No nested lists: use "- -- child" for depth.', | ||
| 'Convert: **bold** → *bold*, *italic* → _italic_, [text](url) → <url|text>.', | ||
| '# headings and > blockquotes are also unsupported syntax.', | ||
| ].join(' '); | ||
|
|
||
| export const CHAT_FORMATTING = ` | ||
| Supported formatting: | ||
| - *bold* (single asterisks) | ||
| - _italic_ (single underscores) | ||
| - ~strikethrough~ | ||
| - \`inline code\` | ||
| - \`\`\`code blocks\`\`\` | ||
| - Bulleted lists ("* " or "- " at line start) | ||
| - Links: <url|text> | ||
| - User mentions: <users/{user}> | ||
| Unsupported (convert these): | ||
| - **double asterisks** for bold | ||
| - [text](url) markdown links | ||
| - Nested lists (flatten with dashes: "- parent", "- -- child") | ||
| - # headings | ||
| - > blockquotes | ||
| `.trim(); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try adding these to the GEMINI-workspace.md file? It seems like a little overkill to add these to every tool description, but if you tried that and it didn't work I would understand why you took this route.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created pull/142 which only updates WORKSPACE-Context.md, I can close this PR once the new one is merged.