Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Fix provider patterns
haxzie committed
May 15, 2025 at 14:52 UTC
795a62ddcfbbb82b709c4578b95ec5ece7239692
5 files changed
+7
-29
packages/core/src/models/Tools.ts
-1
@@ -7,7 +7,6 @@ import {
7
ToolList,
8
ToolSchema,
9
ToolExecuteResponseSchema,
10
- CustomAuthParams,
10
} from '../types/tool.types';
11
import {
12
ToolGetInputParams,
packages/core/src/toolset/BaseToolset.ts
+4
-10
@@ -1,13 +1,13 @@
1
import { ExecuteToolModifiers } from '../types/modifiers.types';
2
import type { Tool, ToolExecuteParams, ToolExecuteResponse } from '../types/tool.types';
3
-import { ExecuteToolFn, ExecuteToolFnOptions, GlobalExecuteToolFn } from '../types/toolset.types';
3
+import { ExecuteToolFn, GlobalExecuteToolFn } from '../types/toolset.types';
4
5
/**
6
* @internal
7
* Base class for all toolsets.
8
* This class is not meant to be used directly, but rather to be extended by different toolset implementations.
9
*/
10
-abstract class BaseToolset<TToolCollection, TTool> {
10
+abstract class BaseToolset {
11
/**
12
* @public
13
* The name of the toolset.
@@ -58,10 +58,7 @@ abstract class BaseToolset<TToolCollection, TTool> {
58
* Base class for all non-agentic toolsets.
59
* This class is not meant to be used directly, but rather to be extended by concrete toolset implementations.
60
*/
61
-export abstract class BaseNonAgenticToolset<TToolCollection, TTool> extends BaseToolset<
62
- TToolCollection,
63
- TTool
64
-> {
61
+export abstract class BaseNonAgenticToolset<TToolCollection, TTool> extends BaseToolset {
62
override readonly _isAgentic = false;
63
64
/**
@@ -83,10 +80,7 @@ export abstract class BaseNonAgenticToolset<TToolCollection, TTool> extends Base
80
* Base class for all agentic toolsets.
81
* This class is not meant to be used directly, but rather to be extended by concrete toolset implementations.
82
*/
86
-export abstract class BaseAgenticToolset<TToolCollection, TTool> extends BaseToolset<
87
- TToolCollection,
88
- TTool
89
-> {
83
+export abstract class BaseAgenticToolset<TToolCollection, TTool> extends BaseToolset {
84
override readonly _isAgentic = true;
85
86
/**
packages/core/src/toolset/ComposioToolset.ts
+1
-2
@@ -1,5 +1,4 @@
1
-import { ToolOptions } from '../types/modifiers.types';
2
-import { Tool, ToolListParams } from '../types/tool.types';
1
+import { Tool } from '../types/tool.types';
2
import { BaseNonAgenticToolset } from './BaseToolset';
3
4
/**
packages/toolsets/cloudflare/src/index.ts
+1
-8
@@ -10,14 +10,7 @@
10
* @module toolsets/cloudflare
11
*/
12
import { AiTextGenerationToolInput } from '@cloudflare/workers-types';
13
-import {
14
- Tool,
15
- ToolListParams,
16
- ExecuteToolModifiers,
17
- ToolOptions,
18
- BaseNonAgenticToolset,
19
- ExecuteMetadata,
20
-} from '@composio/core';
13
+import { Tool, ExecuteToolModifiers, BaseNonAgenticToolset } from '@composio/core';
14
import { ToolExecuteParams } from 'packages/core/src/types/tool.types';
15
import { ExecuteToolFnOptions } from 'packages/core/src/types/toolset.types';
16
packages/toolsets/langchain/src/index.ts
+1
-8
@@ -9,14 +9,7 @@
9
* @packageDocumentation
10
* @module toolsets/langchain
11
*/
12
-import {
13
- BaseAgenticToolset,
14
- jsonSchemaToModel,
15
- Tool,
16
- ToolListParams,
17
- AgenticToolOptions,
18
- // ExecuteMetadata,
19
-} from '@composio/core';
12
+import { BaseAgenticToolset, jsonSchemaToModel, Tool } from '@composio/core';
13
import { DynamicStructuredTool } from '@langchain/core/tools';
14
import { ExecuteToolFn } from 'packages/core/src/types/toolset.types';
15