Skip to main content

Module context_translation

Module context_translation 

Source
Expand description

G8 — Context translation strategy for cross-provider message compatibility.

When messages generated by one provider (e.g., Anthropic with Content::Thinking) need to be consumed by a different provider, certain content types may need translation, conversion, or removal. ContextTranslationStrategy provides a read-only translation layer that produces temporary copies without modifying the canonical message history.

Structs§

DefaultContextTranslation
Default translation with built-in per-provider rules.

Traits§

ContextTranslationStrategy
Translates canonical Messages for consumption by a specific target provider.