Skip to content

Commit d65a018

Browse files
committed
prompt tweak for final - doc image updates
1 parent b349cbc commit d65a018

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/images/readme/agent_flow.png

-296 KB
Loading
-193 KB
Loading

src/backend/v3/orchestration/human_approval_manager.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
MagenticContext, ProgressLedger, ProgressLedgerItem,
1414
StandardMagenticManager)
1515
from semantic_kernel.agents.orchestration.prompts._magentic_prompts import (
16-
ORCHESTRATOR_TASK_LEDGER_PLAN_PROMPT,
16+
ORCHESTRATOR_FINAL_ANSWER_PROMPT, ORCHESTRATOR_TASK_LEDGER_PLAN_PROMPT,
1717
ORCHESTRATOR_TASK_LEDGER_PLAN_UPDATE_PROMPT)
1818
from semantic_kernel.contents import ChatMessageContent
1919
from v3.config.settings import (connection_config, current_user_id,
@@ -59,11 +59,17 @@ def __init__(self, *args, **kwargs):
5959
- **ProxyAgent** to review the drafted onboarding plan for clarity and completeness.
6060
- **MagenticManager** to finalize the onboarding plan and prepare it for presentation to stakeholders.
6161
62+
"""
63+
64+
final_append = """
65+
The final answer should not include any offers of further conversation or assistance. The application will not all further interaction with the user.
66+
The final answer should be a complete and final response to the user's original request.
6267
"""
6368

6469
# kwargs["task_ledger_facts_prompt"] = ORCHESTRATOR_TASK_LEDGER_FACTS_PROMPT + facts_append
6570
kwargs['task_ledger_plan_prompt'] = ORCHESTRATOR_TASK_LEDGER_PLAN_PROMPT + plan_append
6671
kwargs['task_ledger_plan_update_prompt'] = ORCHESTRATOR_TASK_LEDGER_PLAN_UPDATE_PROMPT + plan_append
72+
kwargs['final_answer_prompt'] = ORCHESTRATOR_FINAL_ANSWER_PROMPT + final_append
6773

6874
super().__init__(*args, **kwargs)
6975

0 commit comments

Comments
 (0)