test_case_id: "fenced_artifact_filename_special_chars_001"
description: "Tests that a filename with spaces, hyphens, and multiple dots is handled correctly."
tags: ["all","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 named 'Q1 Sales Report - 2024.v2.md'."}]
  external_context:
    a2a_session_id: "fixed_session_for_fenced_artifact_special_chars_test_001"

llm_interactions:
  - static_response:
      choices:
        - message:
            role: "assistant"
            content: |
              Okay, I will create the report with the specified name.
              «««save_artifact: filename="Q1 Sales Report - 2024.v2.md" mime_type="text/markdown"
              # Q1 Sales Report (Version 2)
              This report contains sales data for the first quarter of 2024.
              »»»
          finish_reason: "stop"
  - static_response:
      choices:
        - message:
            role: "assistant"
            content: "I have created the artifact 'Q1 Sales Report - 2024.v2.md'."
    expected_request:
      expected_tool_responses_in_llm_messages:
        - tool_name: "_notify_artifact_save"
          response_json_matches:
            filename: "Q1 Sales Report - 2024.v2.md"
            status: "success"

expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: "I have created the artifact 'Q1 Sales Report - 2024.v2.md'."
    assert_artifact_state:
      - filename: "Q1 Sales Report - 2024.v2.md"
        version: 0
        expected_content_text: |
          # Q1 Sales Report (Version 2)
          This report contains sales data for the first quarter of 2024.
        expected_metadata_contains:
          mime_type: "text/markdown"
