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
SummarizationOptions
Defined in: packages/ai/src/types.ts:2178
Type Parameters#
TProviderOptions#
TProviderOptions extends object = Record<string, unknown>
Properties#
abortSignal?#
optional abortSignal?: AbortSignal;Defined in: packages/ai/src/types.ts:2208
Effective abort signal composed by the activity from caller abortSignal and/or timeout. Adapters should forward this to the provider SDK when supported. Request-specific — never store on a global client config.
focus?#
optional focus?: string[];Defined in: packages/ai/src/types.ts:2185
logger#
logger: InternalLogger;Defined in: packages/ai/src/types.ts:2202
Internal logger threaded from the summarize() entry point. Adapters must call logger.request() before the SDK call and logger.errors() in catch blocks.
maxLength?#
optional maxLength?: number;Defined in: packages/ai/src/types.ts:2183
model#
model: string;Defined in: packages/ai/src/types.ts:2181
modelOptions?#
optional modelOptions?: TProviderOptions;Defined in: packages/ai/src/types.ts:2187
Provider-specific options forwarded by the summarize() activity.
runId?#
optional runId?: string;Defined in: packages/ai/src/types.ts:2196
Run identity forwarded from the summarize() activity. When set, the streaming adapter stamps it onto the emitted RUN_STARTED (via the wrapped chat), so a delivery-durable route keys the run's log by the same id the client rejoins with — making a mid-run reload resumable, like the media activities. Optional and non-breaking: adapters that ignore it just mint their own.
style?#
optional style?: "bullet-points" | "paragraph" | "concise";Defined in: packages/ai/src/types.ts:2184
text#
text: string;Defined in: packages/ai/src/types.ts:2182
threadId?#
optional threadId?: string;Defined in: packages/ai/src/types.ts:2197