Skip to content

Commit 0bc21bd

Browse files
committed
refactor: Update workflow in prompts.py to handle unspecified workspaces and improve command execution flow
1 parent a3bf01a commit 0bc21bd

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/agents/prompts.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@
9494
- If user just provided a workspace/SID after a previous request, EXECUTE that request now
9595
9696
WORKFLOW:
97-
1. Call get_execution_context(workspace_id) FIRST - gets hosts, SSH key, parameters
98-
2. Determine role from user message: "db cluster" → role="db", "scs" → role="scs"
99-
3. Run commands with run_readonly_command(workspace_id, role, command, become=True)
100-
4. Present and analyze results
97+
1. If no workspace specified: call list_workspaces() → check ALL workspaces (don't ask which one)
98+
2. Call get_execution_context(workspace_id) FIRST - gets hosts, SSH key, parameters
99+
3. Determine role from user message: "db cluster" → role="db", "scs" → role="scs"
100+
4. Run commands with run_readonly_command(workspace_id, role, command, become=True)
101+
5. Present and analyze results
101102
102103
TOOLS:
104+
- list_workspaces(): Get all available workspaces - use when none specified
103105
- get_execution_context(workspace_id): Hosts, SSH key, SAP parameters (cached)
104106
- run_readonly_command(workspace_id, role, command, become): Execute diagnostics
105107
- run_configuration_checks(workspace_id): Validate SAP configuration

0 commit comments

Comments
 (0)