-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat: allow injection of custom auth for local tools #1110
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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! Reviewed everything up to 5027da1 in 27 seconds
More details
- Looked at
90
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. python/composio/client/collections.py:1040
- Draft comment:
Ensure that the addition of 'metadata' to ParamPlacement is handled consistently across the codebase. The _serialize_auth function raises an error for 'metadata' in remote execution, but this should be documented or handled in other parts of the code where ParamPlacement is used. - Reason this comment was not posted:
Comment did not seem useful.
2. python/composio/tools/local/filetool/actions/git_clone.py:26
- Draft comment:
Ensure that the usage of the optional github_access_token parameter is documented, and update any relevant documentation or usage examples to reflect this change. - Reason this comment was not posted:
Confidence changes required:50%
The git_clone_cmd function now accepts an optional github_access_token parameter, which defaults to an environment variable if not provided. This is a good practice for flexibility, but ensure that the environment variable is documented and that the function's usage is updated accordingly.
3. python/composio/tools/toolset.py:482
- Draft comment:
Document or validate the usage of custom authentication parameters with 'metadata' placement in the _execute_local method to ensure users understand how to use this feature. - Reason this comment was not posted:
Confidence changes required:50%
The _execute_local method in ComposioToolSet class now processes custom authentication parameters, specifically those with 'metadata' placement. This is a crucial change for custom auth handling, and it should be documented or validated to ensure users understand how to use it.
Workflow ID: wflow_Pd2LSzpoi8OJfsEn
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
WalkthroughThis update enhances the Composio framework by introducing custom authentication parameters for local tools. The Changes
🔗 Related PRs
Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
|
There was a problem hiding this 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 5dc452a in 13 seconds
More details
- Looked at
74
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. python/tests/test_tools/test_toolset.py:335
- Draft comment:
Consider adding a return type annotation to the functiontest_custom_auth_on_localtool
for better readability and static analysis. - Reason this comment was not posted:
Confidence changes required:20%
The test functiontest_custom_auth_on_localtool
is missing a return type annotation. Adding type annotations improves code readability and helps with static analysis.
2. python/tests/test_tools/test_toolset.py:365
- Draft comment:
Consider adding a return type annotation to the functiontest_bad_custom_auth_on_localtool
for better readability and static analysis. - Reason this comment was not posted:
Confidence changes required:20%
The test functiontest_bad_custom_auth_on_localtool
is missing a return type annotation. Adding type annotations improves code readability and helps with static analysis.
Workflow ID: wflow_iDuwGTk188qf5BAy
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
🔍 Review Summary
Release Note
Purpose:
Changes:
Enhancement:
git_clone
function for flexible authentication.Bug Fix:
metadata
for remote actions.New Feature:
Impact:
Original Description