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

docs: improved getting started, tool docs, and docstrings #193

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

ErikBjare
Copy link
Owner

@ErikBjare ErikBjare commented Oct 10, 2024

Fixes #191


Important

Improves documentation and docstrings for gptme, enhancing guides, tool usage instructions, and updates Sphinx configuration.

  • Documentation:
    • Enhanced getting-started.rst with clearer instructions and examples for initiating chats and making changes.
    • Updated cli.rst with detailed CLI usage examples, including non-interactive mode.
    • Improved server.rst to clarify server and web UI usage.
    • Expanded tools.rst to include new tools like Subagent and Vision.
  • Docstrings:
    • Added detailed docstrings in gptme/tools/base.py, browser.py, read.py, save.py, tmux.py, and vision.py.
    • Included usage examples and instructions for each tool.
  • Sphinx Configuration:
    • Updated conf.py to include new classes and improve HTML output options.
  • Misc:
    • Minor CSS adjustments in custom.css to improve layout.

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

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! Reviewed everything up to 391f092 in 25 seconds

More details
  • Looked at 500 lines of code in 11 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 drafted comments based on config settings.
1. docs/cli.rst:15
  • Draft comment:
    The addition of the non-interactive mode and multiprompt syntax explanation is a helpful enhancement for users looking to automate tasks. The example provided is clear and practical.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR introduces a new section in the CLI documentation for the gptme command, explaining the non-interactive mode and multiprompt syntax. This is a useful addition for users who want to automate tasks without manual confirmation. The explanation is clear and provides a practical example.
2. docs/conf.py:115
  • Draft comment:
    The ChatDirective class is a valuable addition for rendering chat-like interactions in the documentation, improving readability and user engagement.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR adds a new class ChatDirective in the Sphinx configuration file, which processes chat messages in the documentation. This is a useful feature for rendering chat-like interactions in the documentation, enhancing readability and user engagement.
3. docs/getting-started.rst:32
  • Draft comment:
    The use of .. rubric:: for section headings improves readability and helps users quickly locate specific information.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR improves the getting started guide by organizing sections with .. rubric:: for better readability. This change helps users quickly locate specific information, enhancing the overall user experience.
4. docs/server.rst:6
  • Draft comment:
    The note about the web UI's limitations is important for setting user expectations and avoiding confusion about its current capabilities.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR adds a note about the web UI's limitations in the server documentation. This is important for setting user expectations and avoiding confusion about the current capabilities of the web UI.
5. docs/tools.rst:13
  • Draft comment:
    The addition of new tools like Subagent and Vision expands the tool's capabilities, providing users with more options and enhancing versatility.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR adds new tools and categories in the tools documentation, such as Subagent and Vision. This expansion provides users with more options and capabilities, enhancing the tool's versatility.
6. gptme/tools/base.py:63
  • Draft comment:
    The use of .. rubric:: for structuring instructions and examples in get_doc improves the clarity and organization of the tool documentation.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR modifies the get_doc method in ToolSpec to include instructions and examples in a more structured format using .. rubric::. This change improves the clarity and organization of the documentation generated for each tool.
7. gptme/tools/browser.py:50
  • Draft comment:
    The use of ToolUse for generating example outputs standardizes presentation, enhancing consistency and clarity.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR updates the examples in the browser.py file to use the ToolUse class for generating output. This change standardizes the way examples are presented, making them more consistent and easier to understand.

Workflow ID: wflow_QfNu0J4HPEDGI8Qz


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

@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.44%. Comparing base (f258602) to head (2521a8a).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #193      +/-   ##
==========================================
+ Coverage   80.39%   80.44%   +0.04%     
==========================================
  Files          56       56              
  Lines        3305     3308       +3     
==========================================
+ Hits         2657     2661       +4     
+ Misses        648      647       -1     
Flag Coverage Δ
anthropic/claude-3-haiku-20240307 79.38% <100.00%> (+0.04%) ⬆️
openai/gpt-4o-mini 79.17% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 8878d9b in 13 seconds

More details
  • Looked at 768 lines of code in 16 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. gptme/tools/browser.py:12
  • Draft comment:
    The added instructions for installing the browser tool with playwright should resolve the issue mentioned in the PR description.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The PR description mentions improving the documentation and docstrings, including the browser tool. The issue was about the browser tool not being available despite playwright being installed. The PR adds instructions for installing the browser tool with playwright, which should resolve the issue.

Workflow ID: wflow_LHhS1xHVEHEGyGp8


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

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 ef5af58 in 20 seconds

More details
  • Looked at 296 lines of code in 8 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. docs/conf.py:93
  • Draft comment:
    The PR description mentions resolving issue 191, which is about the browser tool not being available despite playwright being installed. However, this PR only includes documentation updates and does not address the issue of the browser tool's availability. Please ensure that the issue is resolved in this PR.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_kGZ2oiSVfzAZ6MhH


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

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 0f731a3 in 12 seconds

More details
  • Looked at 55 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. docs/_static/custom.css:15
  • Draft comment:
    The comment 'Doesn't work reliable, since size is variable' is unclear. Consider rephrasing to 'Height adjustment may not be reliable due to variable content size.'
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The CSS comment on line 15 is unclear and should be corrected for clarity.

Workflow ID: wflow_FvmPwjg24VpWog9O


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

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 2521a8a in 11 seconds

More details
  • Looked at 17 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. gptme/tools/gh.py:15
  • Draft comment:
    Consider using triple double quotes for multi-line strings to maintain consistency with the rest of the codebase.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of triple single quotes for multi-line strings is inconsistent with the rest of the codebase, which uses triple double quotes.

Workflow ID: wflow_dW7FM9SPLviRte6P


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

@ErikBjare ErikBjare merged commit 4aa3f2d into master Oct 10, 2024
7 checks passed
@ErikBjare ErikBjare deleted the dev/better-docs branch October 10, 2024 10:04
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.

browser tool not available despite playwright being installed
2 participants