chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"_meta": {
|
||||
"description": "D6 fixtures for ms-agent-python / shared-state-read-write",
|
||||
"sourceFile": "d5-all.json",
|
||||
"copiedFrom": "langgraph-python",
|
||||
"created": "2026-05-21"
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"match": {
|
||||
"userMessage": "recall the user preference",
|
||||
"turnIndex": 0,
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"content": "Per the read-only context the user prefers concise responses. The agent received this preference via the shared-state context and is honoring it without writing back to state."
|
||||
}
|
||||
},
|
||||
{
|
||||
"_comment": "shared-state-read-write — Greet pill. Matches on userMessage only; the systemMessage gate was too fragile (the middleware's output format varies by CopilotKit runtime version and system prompt ordering).",
|
||||
"match": {
|
||||
"userMessage": "Say hi and introduce yourself",
|
||||
"turnIndex": 0,
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"content": "Hi — I'm your shared-state co-pilot. Your Preferences panel (name, tone, language, interests) is fed to me on every turn, and I jot notes back into the Agent Scratch Pad via set_notes so the UI re-renders. Try setting your name or asking me to remember something."
|
||||
}
|
||||
},
|
||||
{
|
||||
"_comment": "shared-state-read-write — Plan-a-weekend pill. Same no-systemMessage gate as the Greet pill.",
|
||||
"match": {
|
||||
"userMessage": "weekend plan based on my interests",
|
||||
"turnIndex": 0,
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"content": "A weekend tailored to your interests panel: if you haven't picked any yet, try Cooking + Travel for a market-and-day-trip combo, or Tech + Books for a maker session and a long reading afternoon. Add interests in the Preferences panel and re-ask for a more specific plan."
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"userMessage": "remember that my favorite color is blue",
|
||||
"hasToolResult": false,
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"toolCalls": [
|
||||
{
|
||||
"id": "call_d5_set_notes_001",
|
||||
"name": "set_notes",
|
||||
"arguments": "{\"notes\":[\"Favorite color: blue\"]}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"userMessage": "remember that my favorite color is blue",
|
||||
"hasToolResult": true,
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"content": "Got it — I have noted that your favorite color is blue."
|
||||
}
|
||||
},
|
||||
{
|
||||
"_comment": "shared-state-write turn 2 — recall. No turnIndex gate: this is turn 2 of a 2-turn probe (turn 1 = set_notes, turn 2 = recall).",
|
||||
"match": {
|
||||
"userMessage": "favorite color",
|
||||
"context": "ms-agent-python"
|
||||
},
|
||||
"response": {
|
||||
"content": "Your favorite color is blue — I noted it earlier."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user