Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Fix examples
haxzie2e9dd01172fc
diff --git a/examples/openai/src/index.ts b/examples/openai/src/index.tsindex fa9c2b3b5..9441b0e47 100644--- a/examples/openai/src/index.ts+++ b/examples/openai/src/index.ts@@ -17,11 +17,11 @@ const composio = new Composio({* Get the tool by slug* This tool is automatically typed and wrapped with the OpenAI Toolset*/-const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');+const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');/*** Define a task for the assistant based on the tools in hand*/-const task = "Fetch the details of the user 'haxzie'";+const task = "Fetch the details of the user 'pg'";/*** Define the messages for the assistant