Class References
Function References
- text
- textOptions
- combineStrategies
- convertMessagesToModelMessages
- convertZodToJsonSchema
- createReplayStream
- embedding
- generateMessageId
- maxIterations
- messages
- modelMessageToUIMessage
- modelMessagesToUIMessages
- normalizeToUIMessage
- parsePartialJSON
- summarize
- toServerSentEventsStream
- toServerSentEventsResponse
- toolDefinition
- uiMessageToModelMessages
- realtimeToken
- untilFinishReason
Interface References
- AIAdapter
- AIAdapterConfig
- AgentLoopState
- ApprovalRequestedStreamChunk
- AudioPart
- AudioVisualization
- BaseStreamChunk
- TextCompletionChunk
- TextOptions
- ChunkRecording
- ChunkStrategy
- ClientTool
- ContentPartSource
- ContentStreamChunk
- DefaultMessageMetadataByModality
- DocumentPart
- DoneStreamChunk
- EmbeddingOptions
- EmbeddingResult
- ErrorStreamChunk
- ImagePart
- InternalToolCallState
- JSONParser
- ModelMessage
- ProcessorResult
- ProcessorState
- RealtimeAdapter
- RealtimeClientOptions
- RealtimeConnection
- RealtimeMessage
- RealtimeSessionConfig
- RealtimeToken
- RealtimeTokenAdapter
- RealtimeTokenOptions
- ResponseFormat
- ServerTool
- StreamProcessorEvents
- StreamProcessorHandlers
- StreamProcessorOptions
- SummarizationOptions
- SummarizationResult
- TextPart
- ThinkingPart
- ThinkingStreamChunk
- Tool
- ToolCall
- ToolCallPart
- ToolCallStreamChunk
- ToolConfig
- ToolDefinition
- ToolDefinitionConfig
- ToolDefinitionInstance
- ToolInputAvailableStreamChunk
- ToolResultPart
- ToolResultStreamChunk
- UIMessage
- VideoPart
Type Alias References
- AgentLoopStrategy
- AnyClientTool
- TextStreamOptionsForModel
- TextStreamOptionsUnion
- ConstrainedContent
- ConstrainedModelMessage
- ContentPart
- ContentPartForModalities
- ExtractModalitiesForModel
- ExtractModelsFromAdapter
- InferToolInput
- InferToolName
- InferToolOutput
- MessagePart
- RealtimeEvent
- RealtimeMessagePart
- RealtimeMode
- RealtimeStatus
- ModalitiesArrayToUnion
- Modality
- StreamChunk
- StreamChunkType
- ToolCallState
- ToolResultState
Variable References
RerankOptions
Defined in: packages/ai/src/types.ts:2228
Options passed to a RerankAdapter. Documents reach the adapter already serialized to strings — the rerank() activity stringifies object documents and maps results back to the original elements, so adapters never deal with the caller's document type.
Type Parameters#
TProviderOptions#
TProviderOptions extends object = Record<string, unknown>
Properties#
abortSignal?#
optional abortSignal?: AbortSignal;Defined in: packages/ai/src/types.ts:2241
Forwarded to the provider request for cancellation.
documents#
documents: string[];Defined in: packages/ai/src/types.ts:2235
Documents to rerank, pre-serialized to strings by the activity.
logger#
logger: InternalLogger;Defined in: packages/ai/src/types.ts:2247
Internal logger threaded from the rerank() entry point. Adapters must call logger.request() before the provider call and logger.errors() in catch blocks.
model#
model: string;Defined in: packages/ai/src/types.ts:2231
modelOptions?#
optional modelOptions?: TProviderOptions;Defined in: packages/ai/src/types.ts:2239
Provider-specific options forwarded by the rerank() activity.
query#
query: string;Defined in: packages/ai/src/types.ts:2233
The search query documents are scored against.
topN?#
optional topN?: number;Defined in: packages/ai/src/types.ts:2237
Return only the top N results. Passed through to the provider.