save_translation_memory
Save a translation pair to the TM cache, enabling future lookups without re-calling the LLM. Upserts duplicate entries to track usage.
Instructions
Store a (source, target, sourceLang, targetLang) tuple in the TM cache. Useful when an agent has a known-good translation it wants future lookups to find without re-calling the LLM. Upserts on duplicate keys (increments the hits counter).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source text. | |
| target | Yes | Target translation. | |
| sourceLang | Yes | Source language code. | |
| targetLang | Yes | Target language code. |