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
Update get tools call to use tools.get()
haxzieaf3991f5d81e
diff --git a/examples/openai/src/assistants.ts b/examples/openai/src/assistants.tsindex 085d42935..32dbf3de4 100644--- a/examples/openai/src/assistants.ts+++ b/examples/openai/src/assistants.ts@@ -25,7 +25,7 @@ async function main() {try {console.log('π Setting up Composio and fetching tool...');- const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');+ const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');console.log('π Creating OpenAI Assistant with Composio tool...');diff --git a/examples/openai/src/chat-completions.ts b/examples/openai/src/chat-completions.tsindex 0010cceb1..abb699662 100644--- a/examples/openai/src/chat-completions.ts+++ b/examples/openai/src/chat-completions.ts@@ -25,7 +25,7 @@ async function main() {try {console.log('π Setting up Composio and fetching tool...');- const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');+ const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');const query = "Find information about the HackerNews user 'pg'";