test_case_id: "embed_ac_json_as_json_pretty_001"
description: "Tests «artifact_content:data.json>>>format:json_pretty»."
tags: ["common","embeds"]
skip_intermediate_events: true

setup_artifacts:
  - filename: "data.json"
    mime_type: "application/json"
    content: '{"message":"hello pretty json","value":123,"nested":{"key":"val"}}'
gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "embed_late_tester@example.com"
  parts: [{type: "text", text: "Get data.json pretty printed"}]
llm_interactions:
  - static_response:
      choices: [{message: {role: "assistant", content: "Pretty JSON:\n«artifact_content:data.json>>>format:json_pretty»"}}]
expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        # Exact pretty print format can vary slightly by library, so check for key elements and structure.
        # Using text_contains for parts of the structure.
        text_contains: "\"message\": \"hello pretty json\""
      - type: "text"
        text_contains: "\"value\": 123"
      - type: "text"
        # A more robust check might involve parsing the JSON in the test runner if needed.
        # For now, checking a snippet of the nested structure.
        text_contains: "\"nested\": {\n    \"key\": \"val\"\n  }"
