test_case_id: "embed_ac_json_as_text_001"
description: "Tests «artifact_content:data.json>>>format:text» for JSON as text."
tags: ["common","embeds"]
skip_intermediate_events: true

setup_artifacts:
  - filename: "data.json"
    mime_type: "application/json"
    content: '{"message": "hello json", "value": 42}'
gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "embed_late_tester@example.com"
  parts: [{type: "text", text: "Get data.json as text"}]
llm_interactions:
  - static_response:
      choices: [{message: {role: "assistant", content: "JSON as text: «artifact_content:data.json>>>format:text»"}}]
expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: 'JSON as text: {"message":"hello json","value":42}'
