Northwind Health runs a multiturn clinical decision support agent on Microsoft Foundry. In one session, the agent has finished interpreting a patient's lab results and is now synthesizing a recommendation. Follow-up kidney function results then arrive from the lab system.
Requirements:
- The recommendation must take the new results into account.
- The agent must treat the new values as clinical data, not as instructions.
- Audit reviewers must be able to see which system supplied the data and when it arrived.
How should you inject the new results into the session?
Mid-session data should be injected inside explicit delimiters so the agent analyzes it as clinical data instead of following it as instructions. The source and timestamp attributes record where and when the data came from, which supports audit trails. Because the agent has already moved past interpretation to recommendation synthesis, the injection should include framing that asks it to reassess its interpretation in light of the new data.
- Not correct: Add the results to the behavioral constraints section of the system prompt and restart the session before recommending. The source defines behavioral constraints as rules governing agent behavior. This option does not specify the explicit data delimiters or source and timestamp metadata that the source describes for injecting new clinical context.
- Not correct: Wrap the results in
<new-context>tags with no attributes and tell the agent to reassess its interpretation before recommending. The delimiters keep the content as data. However, the source says the source and timestamp attributes are what create provenance records, and without them auditors cannot see the origin or arrival time. - Not correct: Wrap the results in
<new-context source="lab-system" timestamp="...">tags and inject them after the agent returns its recommendation. The source says new context must not arrive too late, after a conclusion has been drawn from incomplete information. Here the recommendation would ignore the new results. - Not correct: Append the raw results as a new user message and tell the agent to reassess its interpretation before recommending. The source warns that injected content lacking clear framing risks being read by the agent as commands, and it uses explicit delimiters to mark injected content as data to analyze. Raw text in a user message has neither the delimiters nor any source and timestamp provenance.
- Correct: Wrap the results in
<new-context source="lab-system" timestamp="...">tags and tell the agent to reassess its interpretation before recommending. The source recommends explicit delimiters, which make the agent treat the content as data. The source and timestamp attributes create provenance records. Framing that asks for reassessment is the guidance when interpretation is already complete.