-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
249740b
commit 64edf89
Showing
28 changed files
with
604 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"COMPOSIO_API_KEY": "", | ||
"BACKEND_HERMES_URL": "http://localhost:9900" | ||
"BACKEND_HERMES_URL": "http://localhost:9900", | ||
"drive":{ | ||
"downloadable_file_id":"18rcI9N7cJRG15E2qyWXtNSFeDg4Rj-T3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"COMPOSIO_API_KEY": "pv7s0lpq7z5vu27cikyls", | ||
"BACKEND_HERMES_URL": "https://backend.composio.dev" | ||
"BACKEND_HERMES_URL": "https://backend.composio.dev", | ||
"drive":{ | ||
"downloadable_file_id":"18rcI9N7cJRG15E2qyWXtNSFeDg4Rj-T3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"COMPOSIO_API_KEY": "gxpf3a5v864651jp741heq", | ||
"BACKEND_HERMES_URL": "https://staging-backend.composio.dev" | ||
"BACKEND_HERMES_URL": "https://staging-backend.composio.dev", | ||
"drive":{ | ||
"downloadable_file_id":"18rcI9N7cJRG15E2qyWXtNSFeDg4Rj-T3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,16 +160,17 @@ describe("ComposioToolSet class tests", () => { | |
const ACTION_NAME = "GMAIL_SEND_EMAIL"; | ||
const actions = await toolset.getToolsSchema({ actions: [ACTION_NAME] }); | ||
|
||
const firstAction = actions[0]!; | ||
// Check if exist | ||
expect( | ||
actions[0]!.parameters.properties["attachment_file_uri_path"] | ||
firstAction.parameters.properties["attachment_schema_parsed_file"] | ||
).toBeDefined(); | ||
|
||
const requestBody = { | ||
recipient_email: "[email protected]", | ||
subject: "Test email from himanshu", | ||
body: "This is a test email", | ||
attachment_file_uri_path: | ||
attachment_schema_parsed_file: | ||
"https://composio.dev/wp-content/uploads/2024/07/Composio-Logo.webp", | ||
}; | ||
|
||
|
@@ -184,6 +185,20 @@ describe("ComposioToolSet class tests", () => { | |
expect(executionResult.data).toBeDefined(); | ||
}); | ||
|
||
it("should execute downloadable file action", async () => { | ||
const ACTION_NAME = "GOOGLEDRIVE_PARSE_FILE"; | ||
const executionResult = await toolset.executeAction({ | ||
action: ACTION_NAME, | ||
params: { | ||
file_id: testConfig.drive.downloadable_file_id, | ||
}, | ||
entityId: "default", | ||
}); | ||
|
||
// @ts-ignore | ||
expect(executionResult.data.file.uri.length).toBeGreaterThan(0); | ||
}); | ||
|
||
it("should get tools with usecase limit", async () => { | ||
const tools = await toolset.getToolsSchema({ | ||
useCase: "follow user", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.