Interface: TranscriptTranslatorOptions
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:47
How TranscriptTranslator calls the provider.
Properties
abortSignal?
optionalabortSignal:AbortSignal
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:64
Ends the call: it rejects with the signal's reason, and no request is sent once the signal has aborted.
apiKey
apiKey:
string
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:50
baseUrl?
optionalbaseUrl:string
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:51
maxAttempts?
optionalmaxAttempts:number
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:62
A first try and the retries generateText makes, a whole number of 1 or more; default 2.
maxContextLines?
optionalmaxContextLines:number
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:53
How many context lines are sent, a whole number of 0 or more; default 6.
maxOutputTokens?
optionalmaxOutputTokens:number
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:60
The output cap, the reasoning of a reasoning model included; default TranscriptTranslator.defaultMaxOutputTokens(text),
and 1,024 tokens more for an OpenAI reasoning model (the o-series, GPT-5 and GPT-6), which runs at effort low.
model
model:
string
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:49
provider
provider:
"openai"
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:48
timeoutMs?
optionaltimeoutMs:number
Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:55
The call's own timeout, from 1 to 2,147,483,647 ms; default 15,000 ms.