@devries-cameron20 / composio-1 / commits / 406ee8379
Fork 0

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 readme.md

haxzie committed Apr 16, 2025 at 16:25 UTC 406ee8379886a80a22ce3f7af893360c5228300a
1 file changed +17
README.md
+17
@@ -12,6 +12,23 @@ The core Composio SDK which allows users to interact with the Composio Platform.
12 - **ActionExecution**: Track and manage the execution of actions within the platform.
13
14
15 +## Usage
16 +To use the composio tools with your Provider, please install the recommended packages along with `@composio/core`.
17 +
18 +```
19 +import { Composio } from "@composio/core";
20 +import { OpenAIToolset } from "@composio/openai-toolset";
21 +
22 +
23 +const composio = new Composio({
24 + apiKey: process.env.COMPOSIO_API_KEY,
25 + toolset: new OpenAIToolset(),
26 +});
27 +
28 +const tool = await composio.getTool("HACKERNEWS_SEARCH_POSTS");
29 +console.log(tool);
30 +```
31 +
32 ## Creating a new toolset
33 To create a new Toolset, you need to extend the `BaseComposioToolset<YourToolType>` and implement the `_wrapTool` method to return the tool type of your choice.
34