agentskit.js

UseStreamOptions

Auto-generated API reference for UseStreamOptions.

Interface: UseStreamOptions

Defined in: core/dist/chat-Du42KmMf.d.ts:27

#Properties

#onChunk?

optional onChunk?: (chunk) => void

Defined in: core/dist/chat-Du42KmMf.d.ts:28

#Parameters

chunk

StreamChunk

#Returns

void


#onComplete?

optional onComplete?: (text) => void

Defined in: core/dist/chat-Du42KmMf.d.ts:29

#Parameters

text

string

#Returns

void


#onError?

optional onError?: (error) => void

Defined in: core/dist/chat-Du42KmMf.d.ts:30

#Parameters

error

Error

#Returns

void

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.