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
SandboxFileHookEvent
Defined in: packages/ai/src/activities/chat/middleware/types.ts:47
The file event a sandbox hook receives: the serializable SandboxFileEvent plus lazy, git-backed content accessors. Accessors compute on call, so a hook that only reads path/type pays nothing. Never present on the serialized sandbox.file CUSTOM chunk.
Extends#
Properties#
after#
after: () => Promise<string>;Defined in: packages/ai/src/activities/chat/middleware/types.ts:51
Current content ('' when the event is a delete).
Returns#
Promise<string>
before#
before: () => Promise<string>;Defined in: packages/ai/src/activities/chat/middleware/types.ts:49
Content at the session baseline ('' for a new file or non-git workspace).
Returns#
Promise<string>
diff#
diff: () => Promise<string>;Defined in: packages/ai/src/activities/chat/middleware/types.ts:53
Unified patch vs the session baseline (synthesized add-patch when non-git).
Returns#
Promise<string>
path#
path: string;Defined in: packages/ai/src/activities/chat/middleware/types.ts:39
Absolute path inside the sandbox (under the workspace root).
Inherited from#
timestamp#
timestamp: number;Defined in: packages/ai/src/activities/chat/middleware/types.ts:40
Inherited from#
type#
type: "create" | "change" | "delete";Defined in: packages/ai/src/activities/chat/middleware/types.ts:37