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

feat: add doc strings #76

Merged
merged 2 commits into from
May 31, 2024
Merged

feat: add doc strings #76

merged 2 commits into from
May 31, 2024

Conversation

himanshu-dixit
Copy link
Collaborator

@himanshu-dixit himanshu-dixit commented May 31, 2024

🚀 This description was created by Ellipsis for commit 668d5ff

Summary:

This PR enhances code documentation by adding detailed docstrings to functions in two files, improving readability.

Key points:

  • Added detailed docstrings to functions in composio/client/__init__.py and plugins/autogen/composio_autogen/toolset.py.
  • Enhanced code documentation and readability.

Generated with ❤️ by ellipsis.dev

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 31bdc98 in 2 minutes and 15 seconds

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

Workflow ID: wflow_skri9PIGbmnuQrlh


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.

6 days left in your free trial, upgrade for $20/seat/month or contact us.

@@ -142,7 +142,15 @@ def _register_schema_to_autogen(
executor: ConversableAgent,
entity_id: t.Optional[str] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

The docstring for entity_id incorrectly states a default value of 'default'. Please correct the docstring to reflect the actual function signature where no default value is provided.

Suggested change
entity_id: t.Optional[str] = None,
entity_id (str, optional): The ID of the entity for which to execute the action.

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. Incremental review on 668d5ff in 2 minutes and 16 seconds

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

Workflow ID: wflow_jeY6BBMIKHK3pn7l


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.

6 days left in your free trial, upgrade for $20/seat/month or contact us.

schema (dict[str, any]): The action schema to be registered.
caller (ConversableAgent): The agent responsible for initiating the tool registration.
executor (ConversableAgent): The agent responsible for executing the registered tools.
entity_id (str, optional): The identifier of the entity for which the action is executed. Defaults to None.
Copy link
Contributor

Choose a reason for hiding this comment

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

The docstring for the entity_id parameter incorrectly states that it defaults to None. It should reflect the actual behavior where it defaults to self.entity_id if not provided.

Suggested change
entity_id (str, optional): The identifier of the entity for which the action is executed. Defaults to None.
entity_id (str, optional): The identifier of the entity for which the action is executed. Defaults to `self.entity_id`.

@utkarsh-dixit utkarsh-dixit merged commit e053171 into master May 31, 2024
2 of 3 checks passed
@angrybayblade angrybayblade deleted the himanshu/ft-add-docs branch June 13, 2024 11:33
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.

2 participants