Skip to main content

Module shared

Module shared 

Source
Expand description

Shared domain types mirroring the JS SDK’s resources/shared.ts.

Structs§

ApiError
An error originating from the upstream API provider.
ApiErrorData
Data payload for ApiError.
ContextOverflowError
An error indicating the context window was exceeded.
ContextOverflowErrorData
Data payload for ContextOverflowError.
MessageAbortedError
An error indicating the message was aborted.
MessageAbortedErrorData
Data payload for MessageAbortedError.
MessageOutputLengthError
An error indicating the message output exceeded the allowed length.
ProviderAuthError
An error indicating a provider authentication failure.
ProviderAuthErrorData
Data payload for ProviderAuthError.
StructuredOutputError
An error indicating that structured output validation failed.
StructuredOutputErrorData
Data payload for StructuredOutputError.
UnknownError
A generic / unknown error.
UnknownErrorData
Data payload for UnknownError.

Enums§

SessionError
A session-level error – one of the known error kinds.