"""Tool parameter similarity metric prompt template."""

from __future__ import annotations

TEMPLATE = """\
<task>
Evaluate the semantic similarity between expected and actual tool call \
parameters. Parameters may differ in formatting, casing, or phrasing while \
being semantically equivalent.
</task>

<data>
{tool_comparisons}
</data>

<rubric>
For each tool, compare the expected and actual parameter values:
- Exact matches or trivial formatting differences (casing, whitespace) are \
equivalent.
- Synonymous values or equivalent phrasings (e.g., "NYC" vs "New York City") \
are near-matches.
- Completely different values or missing parameters are mismatches.

Scoring anchors:
- 1.0: All parameters are semantically equivalent to the expected values.
- 0.7-0.9: Most parameters match; minor differences in phrasing or formatting.
- 0.4-0.6: Some parameters match but others differ meaningfully.
- 0.1-0.3: Few parameters are close to the expected values.
- 0.0: Parameters are completely different from what was expected."""
