Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eng 2359 #852

Merged
merged 10 commits into from
Nov 14, 2024
Merged

Eng 2359 #852

merged 10 commits into from
Nov 14, 2024

Conversation

plxity
Copy link
Contributor

@plxity plxity commented Nov 13, 2024

User can now search for actions across all the apps or also only in integrated applications using onlySearchAvailableApps parameter


Important

Adds onlySearchAvailableApps parameter to filter actions in integrated apps and updates related tests.

  • Behavior:
    • Adds onlySearchAvailableApps parameter to list method in Actions class in actions.ts to filter actions in integrated apps.
    • Updates getTools methods in CloudflareToolSet, LangchainToolSet, OpenAIToolSet, and VercelAIToolSet classes to support onlySearchAvailableApps.
  • Tests:
    • Adds test case in actions.spec.ts to verify list method retrieves actions from integrated apps when onlySearchAvailableApps is true.

This description was created by Ellipsis for 351fded. It will automatically update as commits are pushed.

Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
composio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 9:28am

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 4311534 in 42 seconds

More details
  • Looked at 69 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_6mTbZtsSAkmaRNIq


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -22,11 +22,22 @@ describe("Apps class tests", () => {
});

it("should get a list of actions", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test case for listing actions with shouldSearchInIntegratedApps is duplicated. Consider removing one of them to avoid redundancy.

Suggested change
it("should get a list of actions", async () => {

js/src/sdk/models/actions.ts Show resolved Hide resolved
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Copy link

github-actions bot commented Nov 13, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-11834362299/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-11834362299/html-report/report.html

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped PR review on c7fcebf because no changed files had a supported extension. If you think this was in error, please contact us and we'll fix it right away.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 9b44fdb in 13 seconds

More details
  • Looked at 15 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_NbYH8uB1skLT5nXK


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

/**
* Should search in available apps only
*/
onlySearchAvailableApps?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filterByAvailableApps

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed the changes

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 059ced9 in 33 seconds

More details
  • Looked at 124 lines of code in 7 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 drafted comments based on config settings.
1. js/src/sdk/models/actions.ts:60
  • Draft comment:
    The PR description mentions onlySearchAvailableApps, but the code uses filterByAvailableApps. Ensure the PR description is updated to reflect the correct parameter name.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. js/src/frameworks/cloudflare.ts:56
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.
3. js/src/frameworks/langchain.ts:68
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.
4. js/src/frameworks/openai.ts:49
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.
5. js/src/frameworks/vercel.ts:54
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.
6. js/src/sdk/base.toolset.ts:132
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.
7. js/src/sdk/models/actions.spec.ts:32
  • Draft comment:
    The parameter onlySearchAvailableApps has been renamed to filterByAvailableApps. Ensure this change is consistently applied across all relevant files.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code changes involve renaming a parameter from onlySearchAvailableApps to filterByAvailableApps. This change is consistent across multiple files, ensuring uniformity in the codebase.

Workflow ID: wflow_j141lLg81bMh8dnI


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

js/src/sdk/models/actions.ts Show resolved Hide resolved
js/src/sdk/models/actions.ts Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 351fded in 13 seconds

More details
  • Looked at 19 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/models/actions.ts:192
  • Draft comment:
    Consider providing a more descriptive error message to help users understand why both filterByAvailableApps and apps cannot be provided together.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message should be more descriptive to help users understand the issue better.

Workflow ID: wflow_doZ7Qylk4c2iUBzv


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@plxity plxity enabled auto-merge (squash) November 14, 2024 09:41
@plxity plxity merged commit 32be68d into master Nov 14, 2024
9 checks passed
@plxity plxity deleted the ENG-2359 branch November 14, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants