test_case_id: "fenced_artifact_description_long_001"
description: "Tests that a very long description is handled correctly."
tags: ["core_a2a"]
skip_intermediate_events: true

gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "fenced_artifact_tester@example.com"
  parts: [{type: "text", text: "Create a file with a long description."}]
  external_context:
    a2a_session_id: "fixed_session_for_fenced_artifact_desc_long_test_001"

llm_interactions:
  - static_response:
      choices:
        - message:
            role: "assistant"
            content: |
              Okay, creating the file.
              «««save_artifact: filename="report.md" mime_type="text/markdown" description="This is a very long description designed to test the limits of the metadata storage and retrieval system. It contains multiple sentences, punctuation, and should be preserved exactly as it is written here, without any truncation or modification by the underlying artifact service or callbacks."
              # Report Content
              »»»
          finish_reason: "stop"
  - static_response:
      choices:
        - message:
            role: "assistant"
            content: "The report has been created."
    expected_request:
      expected_tool_responses_in_llm_messages:
        - tool_name: "_notify_artifact_save"
          response_json_matches:
            filename: "report.md"
            status: "success"

expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: "The report has been created."
    assert_artifact_state:
      - filename: "report.md"
        version: 0
        expected_content_text: "# Report Content\n"
        expected_metadata_contains:
          description: "This is a very long description designed to test the limits of the metadata storage and retrieval system. It contains multiple sentences, punctuation, and should be preserved exactly as it is written here, without any truncation or modification by the underlying artifact service or callbacks."
          mime_type: "text/markdown"
