Q94: agents search and run every connector action instead of the first twenty
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7cd386a38c
commit
d92bdbad90
8 files changed
+224
-97
No files matched your search
@@ -31,7 +31,7 @@ function ceoHarness() {
|
||||
describe("composio tool loading", () => {
|
||||
test("an agent without connector access loads no tools and needs no key", async () => {
|
||||
const { connection, orgId, ceoId } = ceoHarness();
|
||||
await expect(loadComposioTools(connection.db, new IntegrationKeyStore(connection.db, plainVault), orgId, ceoId)).resolves.toEqual([]);
|
||||
expect(loadComposioTools(connection.db, new IntegrationKeyStore(connection.db, plainVault), orgId, ceoId)).toEqual([]);
|
||||
connection.close();
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ describe("composio tool loading", () => {
|
||||
insert into connector_accounts(id, org_id, toolkit_slug, toolkit_name, auth_config_id, status, created_at, updated_at)
|
||||
values ('ca_1', ?, 'gmail', 'Gmail', 'ac_1', 'ACTIVE', ?, ?)
|
||||
`).run(orgId, now, now);
|
||||
await expect(loadComposioTools(connection.db, new IntegrationKeyStore(connection.db, plainVault), orgId, ceoId)).rejects.toThrow("no Composio API key is saved");
|
||||
expect(() => loadComposioTools(connection.db, new IntegrationKeyStore(connection.db, plainVault), orgId, ceoId)).toThrow("no Composio API key is saved");
|
||||
connection.close();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user