You have a Microsoft Foundry project that processes customer requests through several stages: A routing agent receives investigation requests, delegates calculations to a data analysis agent that can use Code Interpreter, and delegates source-grounded summaries to a literature review agent.
You discover the following issues:
* Tasks are sometimes routed to the incorrect agent.
* The format of the final response is inconsistent.
You need to ensure that compound requests are routed consistently, and the final response is in a consistent format. The solution must meet the following requirements:
* Minimize changes to the application code.
* Apply to every future conversation handled by the agents.
* Clarify the expected behavior for representative compound inputs.
Which prompt design should you implement?
The requirements ask for behavior that applies to every future conversation, improves routing for representative compound inputs, and standardizes final output with minimal application-code change. Few-shot instruction examples satisfy all three by demonstrating both the desired routing decision and the expected schema-compliant response for representative cases. Repository-wide constraints list rules but do not demonstrate how ambiguous compound requests should be handled. Per-request prompt cues are not durable across future conversations and would require application logic to inject them repeatedly. System role instructions define domains and objectives but provide less behavioral specificity than examples. Microsoft AI-500 prompt-engineering objectives explicitly include examples and dynamic prompt techniques for shaping complex agent behavior. Therefore C is the strongest design. The implementation should also preserve clear inputs and outputs around this step so that later agents receive only the information they require. This improves debuggability and keeps token, permission, and state growth under control as the workflow becomes more complex.
Official Microsoft reference: AI-500 Study Guide - advanced prompt engineering
Currently there are no comments in this discussion, be the first to comment!