Skip to content

AudioChunkStream

Namespace: Vercel.AI.Operations

public sealed class AudioChunkStream

Audio the model may take ownership of.

Inheritance: object

View source

public Exception? CancelError { get; }

Reason from a failed setup cancel.

Value: Exception

View source

public bool Locked { get; }

True after the model takes a reader.

Value: bool

View source

public void Cancel(Exception error)

Cancels an unowned stream. A locked stream throws.

Parameters

Name Type Description
error Exception

View source

public void Lock()

Marks the stream as owned by the model.

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product