Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / StreamResult

Interface: StreamResult ​

Defined in: types.ts:173

The final result of collecting a stream of chunks. Everything you need to know about what the AI just generated.

Properties ​

content ​

content: string

Defined in: types.ts:175

The complete generated content.


finishReason? ​

optional finishReason: FinishReason

Defined in: types.ts:177

Why the generation stopped, if it did.


toolCalls? ​

optional toolCalls: ToolCall[]

Defined in: types.ts:179

Any tool calls that were made during generation.


reasoning? ​

optional reasoning: string

Defined in: types.ts:181

Complete reasoning content if available. The model's internal reasoning process.


usage? ​

optional usage: GenerationUsage

Defined in: types.ts:183

Usage information for the complete generation.

Released under the MIT License.