Expand description
Translation request/response data structures.
These types describe the inputs and outputs of the translation engine independently of any particular AI provider. They are intentionally small and serializable so they can be reused by CLI helpers, integration tests, and structured logging.
Structs§
- Glossary
Entry - User-provided glossary entry, parsed from a UTF-8 glossary file.
- Terminology
Entry - A single terminology entry returned by the AI extraction pass.
- Translation
Batch - A batch of cues sent in a single AI translation request.
- Translation
Cue - One cue in a translation request, identified by its UUIDv7 cue ID.
- Translation
Outcome - Outcome metadata for a successful translation pass.
- Translation
Request - Input parameters for translating a single subtitle file.
- Translation
Result - Result returned by the engine after translating a single subtitle file.
Functions§
- merge_
terminology - Merge a generated terminology map with user glossary entries.
Type Aliases§
- Terminology
Map - Effective terminology map (source term -> target term).