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, 04:15 UTC
Fix langchain example
haxzie committed
Apr 21, 2025 at 20:27 UTC
895fad1927ae6f1867cdfb3add7723deb3080162
1 file changed
+2
-4
examples/langchain/src/index.ts
+2
-4
@@ -4,11 +4,9 @@ import process from "process"
4
5
const composio = new Composio({
6
apiKey: process.env.COMPOSIO_API_KEY,
7
+ toolset: new LangchainToolset()
8
})
9
9
-const toolset = new LangchainToolset()
10
-toolset.setClient(composio)
11
-
12
-const tools = await toolset.getTools()
10
+const tools = await composio.getTools()
11
12
console.log(tools)
\ No newline at end of file