{
  "model_name": "test-multi-turn-state",
  "expects": {
    "tools_used": [
      "memory_write",
      "memory_search"
    ],
    "all_tools_succeeded": true,
    "min_responses": 3
  },
  "turns": [
    {
      "user_input": "Remember that project Alpha uses PostgreSQL.",
      "steps": [
        {
          "response": {
            "type": "tool_calls",
            "tool_calls": [
              {
                "id": "call_mw_1",
                "name": "memory_write",
                "arguments": {
                  "content": "# Project Alpha\n\nDatabase: PostgreSQL",
                  "target": "context/project_alpha.md"
                }
              }
            ],
            "input_tokens": 100,
            "output_tokens": 30
          }
        },
        {
          "response": {
            "type": "text",
            "content": "I've saved the note that Project Alpha uses PostgreSQL.",
            "input_tokens": 200,
            "output_tokens": 20
          }
        }
      ]
    },
    {
      "user_input": "Also note that it uses Redis for caching.",
      "steps": [
        {
          "response": {
            "type": "tool_calls",
            "tool_calls": [
              {
                "id": "call_mw_2",
                "name": "memory_write",
                "arguments": {
                  "content": "# Project Alpha\n\nDatabase: PostgreSQL\nCache: Redis",
                  "target": "context/project_alpha.md"
                }
              }
            ],
            "input_tokens": 300,
            "output_tokens": 30
          }
        },
        {
          "response": {
            "type": "text",
            "content": "Updated the Project Alpha notes to include Redis caching.",
            "input_tokens": 400,
            "output_tokens": 20
          }
        }
      ]
    },
    {
      "user_input": "What database does Project Alpha use?",
      "steps": [
        {
          "response": {
            "type": "tool_calls",
            "tool_calls": [
              {
                "id": "call_ms_1",
                "name": "memory_search",
                "arguments": {
                  "query": "Project Alpha database"
                }
              }
            ],
            "input_tokens": 500,
            "output_tokens": 25
          }
        },
        {
          "response": {
            "type": "text",
            "content": "Project Alpha uses PostgreSQL as its database and Redis for caching.",
            "input_tokens": 600,
            "output_tokens": 20
          }
        }
      ]
    }
  ]
}
