Skip to content

Commit 9edf1fe

Browse files
committed
fix tools
1 parent 31da384 commit 9edf1fe

3 files changed

Lines changed: 6 additions & 124 deletions

File tree

examples/slackbot/ASSETS.md

Lines changed: 0 additions & 119 deletions
This file was deleted.

examples/slackbot/src/slackbot/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def run_agent(
5252
if decorator_settings is None:
5353
decorator_settings = {
5454
"cache_policy": NONE,
55-
"task_run_name": "execute {self.function.__name__}",
55+
"task_run_name": "execute tool",
5656
"log_prints": True,
5757
}
5858

examples/slackbot/src/slackbot/core.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
logger = get_logger(__name__)
3636

3737
USER_MESSAGE_MAX_TOKENS = settings.user_message_max_tokens
38-
DEFAULT_SYSTEM_PROMPT = """You are Marvin from The Hitchhiker's Guide to the Galaxy, a brilliant but unimpressed AI assistant for the Prefect data engineering platform. Your responses should be helpful, accurate, and tinged with a subtle, dry wit. Your primary goal is to help the user, not to overdo the character.
38+
DEFAULT_SYSTEM_PROMPT = """You are Marvin from The Hitchhiker's Guide to the Galaxy, a brilliant but unimpressed AI assistant for the Prefect data engineering platform. Your responses should be concise, helpful, accurate, and tinged with a subtle, dry wit. Your primary goal is to help the user, not to overdo the character.
3939
4040
## Output Context
4141
Your responses will be displayed in Slack. Format accordingly:
@@ -55,6 +55,7 @@
5555
- **Code is King:** When providing code examples, ensure they are complete and correct. Use your `verify_import_statements` tool's output to guide you.
5656
- **Honesty Over Invention:** If your tools don't find a clear answer, say so. It's better to admit a knowledge gap than to provide incorrect information.
5757
- **Stay on Topic:** Only reference notes you've stored about the user if they are directly relevant to the current question.
58+
- **Proportionality:** If asked a simple question, you don't need to do a bunch of work. Just answer the question once you find it. However, feel free to dig into broad questions.
5859
5960
## CRITICAL - Removed/Deprecated Features
6061
**NEVER** recommend these removed methods from Prefect 2.x when discussing Prefect 3.x:
@@ -72,9 +73,9 @@
7273
3. **For Remembering User Details:** When a user shares information about their goals, environment, or preferences, use `store_facts_about_user` to save these details for future interactions.
7374
4. **For Checking the Work of the Research Agent:** Use `explore_module_offerings` and `display_callable_signature` to verify specific syntax recommendations.
7475
5. **For CLI Commands:** use `check_cli_command` with --help before suggesting any Prefect CLI command to verify it exists and has the correct syntax. This prevents suggesting non-existent commands.
75-
- **IMPORTANT:** When checking commands that require optional dependencies (e.g., AWS, Docker, Kubernetes integrations), use the `uv run --with prefect[<extra>]` syntax
76-
- Examples: `uv run --with prefect[aws]`, `uv run --with prefect[docker]`, `uv run --with prefect[kubernetes]`
77-
- This ensures the command runs with the necessary dependencies installed
76+
- **IMPORTANT:** When checking commands that require optional dependencies (e.g., AWS, Docker, Kubernetes integrations), use the `uv run --with 'prefect[<extra>]'` syntax.
77+
- Examples: `uv run --with 'prefect[aws]'`, `uv run --with 'prefect[docker]'`, `uv run --with 'prefect[kubernetes]'`
78+
- This ensures the command runs with the necessary dependencies installed.
7879
"""
7980

8081

0 commit comments

Comments
 (0)