Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Add openai toolset as default toolset

haxzie2d79581bdc7c
diff --git a/packages/core/src/composio.ts b/packages/core/src/composio.ts
index 38ad1fdf0..63f0e4e7a 100644
--- a/packages/core/src/composio.ts
+++ b/packages/core/src/composio.ts
@@ -17,7 +17,7 @@ import { checkForLatestVersionFromNPM } from "./utils/version";
import { OpenAIToolset } from "./toolset/OpenAIToolset";
-export type ComposioConfig<TToolset extends BaseComposioToolset<any, any>> = {
+export type ComposioConfig<TToolset extends BaseComposioToolset<any, any> = OpenAIToolset> = {
apiKey?: string;
baseURL?: string;
allowTracking?: boolean;
@@ -32,7 +32,7 @@ export type ComposioConfig<TToolset extends BaseComposioToolset<any, any>> = {
* This is the core class for Composio.
* It is used to initialize the Composio SDK and provide a global configuration.
*/
-export class Composio<TToolset extends BaseComposioToolset<any, any>> {
+export class Composio<TToolset extends BaseComposioToolset<any, any> = OpenAIToolset> {
private readonly DEFAULT_USER_ID = "default";
readonly FILE_NAME = "core/composio.ts";