test_case_id: "fenced_artifact_description_special_chars_001"
description: "Tests that a description with special characters and unicode is saved 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 with a complex description."}]
  external_context:
    a2a_session_id: "fixed_session_for_fenced_artifact_desc_special_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="你好世界-report-📊 Q1's results & analysis."
              # 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"
    kind: "task"
    id: "*"
    contextId: "fixed_session_for_fenced_artifact_desc_special_test_001"
    status:
      state: "completed"
      message:
        kind: "message"
        messageId: "*"
        role: "agent"
        parts:
          - kind: "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: "你好世界-report-📊 Q1's results & analysis."
          mime_type: "text/markdown"
