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 default entity id
haxzie committed
Apr 21, 2025 at 20:03 UTC
0c46a069a6d6df66e420670300beae5fb19a20e5
2 files changed
+1
-2
packages/core/src/toolset/BaseToolset.ts
-1
@@ -16,7 +16,6 @@ import type { Composio } from "../composio";
16
export abstract class BaseComposioToolset<TToolCollection, TTool> implements Toolset<TTool, TToolCollection> {
17
protected client: Composio<this> | undefined;
18
abstract FILE_NAME: string;
19
-
19
protected DEFAULT_ENTITY_ID = "default";
20
21
/**
packages/toolsets/langchain/src/index.ts
+1
-1
@@ -34,7 +34,7 @@ export class LangchainToolset extends BaseComposioToolset<LangChainToolCollectio
34
return JSON.stringify(
35
await this.client?.tools.execute(toolName, {
36
arguments: kwargs[0] as Record<string, unknown>,
37
- entity_id: this.DEFAULT_ENTITY_ID,
37
+ entity_id: this.client.userId ?? this.DEFAULT_ENTITY_ID,
38
connected_account_id: connectedAccountId,
39
})
40
);