stream
Module: vibex/stream
VibeX streamText - Interface Layer Responsibilities: Parameter validation, space bootstrap, delegation to XAgent
Interfaces
StreamTextOptions
View sourceProperties:
| Name | Type | Description |
|---|---|---|
model | any | (optional) |
messages | Array<\{ role: "system" | "user" | "assistant"; content: string | ContentPart[]; [key: string]: any; \}> | |
system | string | (optional) |
agent | string | |
temperature | number | (optional) |
maxOutputTokens | number | (optional) |
topP | number | (optional) |
frequencyPenalty | number | (optional) |
presencePenalty | number | (optional) |
seed | number | (optional) |
onFinish | (result: \{ usage?: LanguageModelUsage; finishReason?: string; steps?: unknown[]; \}) => void | (optional) |
spaceId | string | (optional) |
data | Record<string, unknown> | (optional) |
Functions
streamText
View sourceGlobal streamText - Interface Layer Only Validates parameters, bootstraps space, delegates to XAgent
function streamText(options: StreamTextOptions): Promise<any>Parameters:
| Name | Type | Description |
|---|---|---|
options | StreamTextOptions |