Skip to content

StreamOptions

Defined in: src/models/model.ts:100

Options interface for configuring streaming model invocation.

optional systemPrompt?: SystemPrompt;

Defined in: src/models/model.ts:105

System prompt to guide the model’s behavior. Can be a simple string or an array of content blocks for advanced caching.


optional toolSpecs?: ToolSpec[];

Defined in: src/models/model.ts:110

Array of tool specifications that the model can use.


optional toolChoice?: ToolChoice;

Defined in: src/models/model.ts:115

Controls how the model selects tools to use.