Skip to main content

Interface: TranscriptTranslatorOptions

Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:47

How TranscriptTranslator calls the provider.

Properties​

abortSignal?​

optional abortSignal: 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?​

optional baseUrl: string

Defined in: packages/agentos/src/cognition/nlp/language/TranscriptTranslator.ts:51


maxAttempts?​

optional maxAttempts: 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?​

optional maxContextLines: 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?​

optional maxOutputTokens: 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?​

optional timeoutMs: 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.