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 default entity id
haxzie committed
Apr 21, 2025 at 20:03 UTC
68e801a2a4adc35bac7f08d34295971800359b9c
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
@@ -23,7 +23,7 @@ export class LangchainToolset extends BaseComposioToolset<LangChainToolCollectio
23
return JSON.stringify(
24
await this.client?.tools.execute(toolName, {
25
arguments: kwargs[0] as Record<string, unknown>,
26
- entity_id: this.DEFAULT_ENTITY_ID,
26
+ entity_id: this.client.userId ?? this.DEFAULT_ENTITY_ID,
27
connected_account_id: connectedAccountId,
28
})
29
);