test_case_id: "embed_ac_tail_001"
description: "Tests «artifact_content:lines.txt>>>tail:2>>>format:text»."
tags: ["all","common","embeds"]
skip_intermediate_events: true

setup_artifacts:
  - filename: "lines.txt"
    mime_type: "text/plain"
    content: "1\n2\n3\n4\n5"
gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "embed_late_tester@example.com"
  parts: [{type: "text", text: "Get tail 2 of lines.txt"}]
llm_interactions:
  - static_response:
      choices: [{message: {role: "assistant", content: "Result: «artifact_content:lines.txt>>>tail:2>>>format:text»"}}]
expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: "Result: 4\n5"
