Skip to main content

Interface: AgentOSLanguageConfig

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:22

Properties​

autoDetect?​

optional autoDetect: boolean

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:27


defaultLanguage​

defaultLanguage: string

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:23


detectionProviderConfigs?​

optional detectionProviderConfigs: object[]

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:30

Detection provider configs (ordered by priority).

id​

id: string

params?​

optional params: Record<string, any>

priority?​

optional priority: number


enableCaching?​

optional enableCaching: boolean

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:38

Optional caching of translation outputs.


enableCodeAwareTranslation?​

optional enableCodeAwareTranslation: boolean

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:36

Enable partitioning of code blocks from prose during translation for better fidelity.


enablePivotNormalization?​

optional enablePivotNormalization: boolean

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:42

If true, attempt pivot normalization (source->pivot) before generation.


fallbackLanguages?​

optional fallbackLanguages: string[]

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:25


maxDirectCharsPerTranslation?​

optional maxDirectCharsPerTranslation: number

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:34

Maximum characters to attempt direct single-shot translation before chunking.


pivotLanguage?​

optional pivotLanguage: string

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:26


preferSourceLanguageResponses?​

optional preferSourceLanguageResponses: boolean

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:28


supportedLanguages​

supportedLanguages: string[]

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:24


translationCacheMaxEntries?​

optional translationCacheMaxEntries: number

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:40

Approximate max entries in translation cache (LRU).


translationProviderConfigs?​

optional translationProviderConfigs: object[]

Defined in: packages/agentos/src/cognition/nlp/language/LanguageService.ts:32

Translation provider configs.

costTier?​

optional costTier: "low" | "medium" | "high"

id​

id: string

params?​

optional params: Record<string, any>

priority?​

optional priority: number

supportedLanguages?​

optional supportedLanguages: string[]