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.

Fix default entity id

haxzie0c46a069a6d6
diff --git a/packages/core/src/toolset/BaseToolset.ts b/packages/core/src/toolset/BaseToolset.ts
index f30f604e2..11a129444 100644
--- a/packages/core/src/toolset/BaseToolset.ts
+++ b/packages/core/src/toolset/BaseToolset.ts
@@ -16,7 +16,6 @@ import type { Composio } from "../composio";
export abstract class BaseComposioToolset<TToolCollection, TTool> implements Toolset<TTool, TToolCollection> {
protected client: Composio<this> | undefined;
abstract FILE_NAME: string;
-
protected DEFAULT_ENTITY_ID = "default";
/**
diff --git a/packages/toolsets/langchain/src/index.ts b/packages/toolsets/langchain/src/index.ts
index ca624d86c..5919be323 100644
--- a/packages/toolsets/langchain/src/index.ts
+++ b/packages/toolsets/langchain/src/index.ts
@@ -34,7 +34,7 @@ export class LangchainToolset extends BaseComposioToolset<LangChainToolCollectio
return JSON.stringify(
await this.client?.tools.execute(toolName, {
arguments: kwargs[0] as Record<string, unknown>,
- entity_id: this.DEFAULT_ENTITY_ID,
+ entity_id: this.client.userId ?? this.DEFAULT_ENTITY_ID,
connected_account_id: connectedAccountId,
})
);