Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
system-prompt tests follow the Gmail draft tools
milind-soni160eecf69dd9
diff --git a/server/system-prompt.test.ts b/server/system-prompt.test.tsindex 5e4a48196f..319535a125 100644--- a/server/system-prompt.test.ts+++ b/server/system-prompt.test.ts@@ -313,11 +313,11 @@ describe("shared sentences", () => {describe("composioSystemPrompt", () => {it("keeps the generic all-tools sentence for legacy bots, with the app tools every engine offers by name", () => {- expect(composioSystemPrompt(undefined)).toBe(`${COMPOSIO_PROMPT} Gmail and Google Calendar, when connected, have tools of their own: call gmail.search_emails, gmail.read_email and gmail.read_email_thread, and googlecalendar.list_events and googlecalendar.list_calendars directly (your engine may show them behind its own prefix, with _ for the dot), and use the composio tools for everything else.`);+ expect(composioSystemPrompt(undefined)).toBe(`${COMPOSIO_PROMPT} Gmail and Google Calendar, when connected, have tools of their own: call gmail.search_emails, gmail.read_email, gmail.read_email_thread, gmail.create_draft, gmail.list_drafts, gmail.read_draft and gmail.update_draft. Draft requests never authorize sending. Revisions update the existing draft ID; creation always makes another draft. If an action fails or accidentally sends, report that fact accurately; a later draft does not undo a send, and googlecalendar.list_events and googlecalendar.list_calendars directly (your engine may show them behind its own prefix, with _ for the dot), and use the composio tools for everything else.`);});it("names the app tools of only the apps a bot was granted", () => {- expect(composioSystemPrompt({ gmail: { tools: "*" } })).toContain("Gmail, when connected, has tools of its own: call gmail.search_emails, gmail.read_email and gmail.read_email_thread directly");+ expect(composioSystemPrompt({ gmail: { tools: "*" } })).toContain("Gmail, when connected, has tools of its own: call gmail.search_emails, gmail.read_email, gmail.read_email_thread, gmail.create_draft");expect(composioSystemPrompt({ github: { tools: "*" } })).not.toContain("gmail.");expect(composioSystemPrompt({})).not.toContain("gmail.");});