Skip to content

Conversation

@zzstoatzz
Copy link
Collaborator

Summary

  • Add "may take a while" message to initial Slackbot response
  • Update LLM instructions to use uv run --extra for optional dependencies

Related Issue

Addresses #1188 (tasks 1 and 2)

Changes

  1. Progress message improvement: Updated the initial thinking message to "🔄 Thinking... this may take a while" so users know to wait when Marvin is processing
  2. Optional dependencies support: Added instructions to the LLM system prompt and check_cli_command tool to use uv run --extra <extra> when commands require optional dependencies (e.g., AWS, Docker, Kubernetes integrations)

Test Plan

  • Test that the Slackbot shows the updated progress message
  • Verify the bot can properly suggest commands with optional extras when needed
  • Confirm existing functionality still works as expected

Note: Task 3 (handling message edits) will be addressed in a separate PR as it requires more investigation.

🤖 Generated with Claude Code

…as support

- Update initial progress message to indicate the response may take time
- Add instructions for using `uv run --extra` for optional dependencies
- Update check_cli_command docstring with examples for extra dependencies

This addresses issues #1188 tasks 1 and 2:
1. Users now know to wait when Marvin is processing
2. Bot can properly handle commands requiring optional dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings August 9, 2025 20:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the Slackbot user experience by adding a progress message and enhancing LLM instructions for optional dependency handling. The changes address two specific tasks from issue #1188.

Key changes:

  • Updated initial Slackbot response to inform users that processing may take a while
  • Enhanced LLM system prompts and tool documentation to support uv run --extra for optional dependencies

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
examples/slackbot/src/slackbot/api.py Updates initial progress message to set user expectations about processing time
examples/slackbot/src/slackbot/core.py Adds LLM instructions for using uv run --extra with optional dependencies
examples/slackbot/src/slackbot/search.py Updates check_cli_command tool documentation to include optional dependency examples

- Change from incorrect 'uv run --extra' to correct 'uv run --with prefect[extra]'
- Update all examples and documentation to use proper syntax
- Tested and verified: uv run --with 'prefect[docker]' works correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@zzstoatzz zzstoatzz merged commit 02f2ff2 into main Aug 11, 2025
3 checks passed
@zzstoatzz zzstoatzz deleted the fix/slackbot-improvements-1-2 branch August 11, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants