@devries-cameron20 / composio Mirror · read-only / commits / 2e9dd0117
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 23, 03:00 UTC

Fix examples

haxzie committed May 16, 2025 at 12:53 UTC 2e9dd01172fc080d169bd220c8227cd8932bf452
1 file changed +2 -2
examples/openai/src/index.ts
+2 -2
@@ -17,11 +17,11 @@ const composio = new Composio({
17 * Get the tool by slug
18 * This tool is automatically typed and wrapped with the OpenAI Toolset
19 */
20 -const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');
20 +const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
21 /**
22 * Define a task for the assistant based on the tools in hand
23 */
24 -const task = "Fetch the details of the user 'haxzie'";
24 +const task = "Fetch the details of the user 'pg'";
25
26 /**
27 * Define the messages for the assistant