test_case_id: "embed_general_malformed_extra_spaces_001"
description: "Tests an embed with extra spaces around type and expression: « math : 1+1 »"
tags: ["common","embeds"]
skip_intermediate_events: true

gateway_input:
  target_agent_name: "TestAgent"
  user_identity: "embed_general_tester@example.com"
  parts: [{type: "text", text: "Extra spaces embed test"}]
llm_interactions:
  - static_response:
      choices: [{message: {role: "assistant", content: "Result is « math : 1 + 1 »."}}] # Spaces around type, colon, and within expression
expected_gateway_output:
  - type: "final_response"
    content_parts:
      - type: "text"
        text_contains: "Result is « math : 1 + 1 »." # Expect successful resolution as spaces around type/expr are trimmed
