Skip to main content

Type Alias: TranslationErrorCode

TranslationErrorCode = "TRANSLATION_REQUEST_FAILED" | "TRANSLATION_EMPTY_OUTPUT" | "TRANSLATION_TIMEOUT" | "TRANSLATION_TRUNCATED" | "TRANSLATION_INCOMPLETE"

Defined in: packages/agentos/src/cognition/nlp/language/interfaces.ts:203

Why a translation provider refused to return a translation: the request failed (an HTTP status other than 2xx, a network error or the provider layer's own timeout), the provider answered with no text, the call was aborted at the translator's own timeout (TRANSLATION_TIMEOUT, which TranscriptTranslator throws), the answer stopped at the output cap with a length finish (TRANSLATION_TRUNCATED), or it stopped for another reason before its end, a content filter among them (TRANSLATION_INCOMPLETE).