Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Update API keys
haxzie committed
Apr 18, 2025 at 13:32 UTC
1d464edf25be80dc0e80ce35c2a8fbe3bfd91ba0
2 files changed
+2
-3
examples/openai/.env.example
new
+2
@@ -0,0 +1,2 @@
1
+COMPOSIO_API_KEY=
2
+OPENAI_API_KEY=
\ No newline at end of file
examples/openai/src/index.ts
-3
@@ -15,9 +15,6 @@ const composio = new Composio({
15
// these tools are automatically typed and wrapped with the OpenAI Toolset
16
const tool = await composio.getTool("HACKERNEWS_GET_USER");
17
18
-await composio.toolset.getTool("HACKERNEWS_GET_USER");
19
-
20
-
18
const task = "Fetch the details of the user 'haxzie'";
19
20
const messages: OpenAI.ChatCompletionMessageParam[] = [