@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
ts 16 lines 835 Bytes
Raw
1 export const createPiComposioSystemPrompt = (
2 sessionId?: string,
3 options: { includeWorkbenchTools?: boolean } = {}
4 ): string =>
5 [
6 "You have Composio tools for working across the user's connected apps.",
7 'Use composio_search_tools to find the right tool before executing app actions.',
8 'Use composio_manage_connections when an app is not connected; never ask for OAuth secrets or API keys.',
9 'Use composio_execute_tool with exact tool slugs and schema-compliant arguments from search results.',
10 options.includeWorkbenchTools
11 ? 'Use composio_remote_workbench or composio_remote_bash for large outputs, remote files, or Composio-authenticated scripting in the remote workbench.'
12 : undefined,
13 sessionId ? `Composio session id: ${sessionId}` : undefined,
14 ]
15 .filter(Boolean)
16 .join('\n');