test_case_id: "embed_ac_template_json_object_input_001"
description: "Tests «artifact_content:item.json>>>apply_to_template:obj.mustache>>>format:text»."
tags: ["common","embeds"]
skip_intermediate_events: true

setup_artifacts:
  - filename: "item.json"
    mime_type: "application/json"
    content: '{"name":"Obj","val":10}'
  - filename: "obj.mustache"
    mime_type: "text/mustache"
    content: "Name: {{name}}, Value: {{val}}"
gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "embed_late_tester@example.com"
  parts: [{type: "text", text: "Render item.json with obj.mustache"}]
llm_interactions:
  - static_response:
      choices: [{message: {role: "assistant", content: "Result: «artifact_content:item.json>>>apply_to_template:obj.mustache>>>format:text»"}}]
expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: "Result: Name: Obj, Value: 10"
