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
Update get tools call to use tools.get()
haxzie committed
May 16, 2025 at 15:11 UTC
af3991f5d81e32c32f0e6e9c861cd9a91114d27e
2 files changed
+2
-2
examples/openai/src/assistants.ts
+1
-1
@@ -25,7 +25,7 @@ async function main() {
25
try {
26
console.log('🔄 Setting up Composio and fetching tool...');
27
28
- const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');
28
+ const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
29
30
console.log('🔄 Creating OpenAI Assistant with Composio tool...');
31
examples/openai/src/chat-completions.ts
+1
-1
@@ -25,7 +25,7 @@ async function main() {
25
try {
26
console.log('🔄 Setting up Composio and fetching tool...');
27
28
- const tool = await composio.getToolBySlug('default', 'HACKERNEWS_GET_USER');
28
+ const tool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
29
30
const query = "Find information about the HackerNews user 'pg'";
31