Skip to main content

Interface: AttemptOutcome

Defined in: packages/agentos/src/core/llm/providers/IProvider.ts:121

One attempt a call made to its provider, as ModelCompletionOptions.onAttempt reports it.

Properties​

attempt​

attempt: number

Defined in: packages/agentos/src/core/llm/providers/IProvider.ts:123

The attempt's number in the call, from 1.


ok​

ok: boolean

Defined in: packages/agentos/src/core/llm/providers/IProvider.ts:127

True when it answered with a success.


status​

status: number | null

Defined in: packages/agentos/src/core/llm/providers/IProvider.ts:125

The HTTP status its last send answered (after any key hops inside it), or null when none came (a timeout, a network failure).