Skip to content

Commit daa63e6

Browse files
committed
Prompt fix for product retrieval through proxy
1 parent c77d7ba commit daa63e6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/backend/v3/orchestration/human_approval_manager.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
import asyncio
77
import re
88
from typing import Any, List, Optional
9-
# Create a progress ledger that indicates the request is satisfied (task complete)
10-
from semantic_kernel.agents.orchestration.magentic import (
11-
ProgressLedger, ProgressLedgerItem)
9+
1210
import v3.models.messages as messages
1311
from semantic_kernel.agents import Agent
1412
from semantic_kernel.agents.orchestration.magentic import (
15-
MagenticContext, ProgressLedger, StandardMagenticManager)
13+
MagenticContext, ProgressLedger, ProgressLedgerItem,
14+
StandardMagenticManager)
1615
from semantic_kernel.agents.orchestration.prompts._magentic_prompts import (
1716
ORCHESTRATOR_TASK_LEDGER_FACTS_PROMPT,
1817
ORCHESTRATOR_TASK_LEDGER_PLAN_PROMPT,
@@ -22,6 +21,8 @@
2221
orchestration_config)
2322
from v3.models.models import MPlan, MStep
2423

24+
# Create a progress ledger that indicates the request is satisfied (task complete)
25+
2526

2627
class HumanApprovalMagenticManager(StandardMagenticManager):
2728
"""
@@ -45,6 +46,11 @@ def __init__(self, *args, **kwargs):
4546
"""
4647

4748
plan_append = """
49+
IMPORTANT: Never ask the user for information or clarification until all agents on the team have been asked first.
50+
51+
EXAMPLE: If the user request involves product information, first ask all agents on the team to provide the information.
52+
Do not ask the user unless all agents have been consulted and the information is still missing.
53+
4854
Plan steps should always include a bullet point, followed by an agent name, followed by a description of the action
4955
to be taken. If a step involves multiple actions, separate them into distinct steps with an agent included in each step. If the step is taken by an agent that
5056
is not part of the team, such as the MagenticManager, please always list the MagenticManager as the agent for that step. At any time, if more information is

0 commit comments

Comments
 (0)