IteratorResult<T>
Namespace: Vercel.AI.Util
public struct IteratorResult<T>Result of one async-iterator step.
Type parameters
| Name | Description |
|---|---|
T |
Properties
Section titled “Properties”public bool Done { readonly get; set; }Whether iteration is finished.
Value: bool
HasValue
Section titled “HasValue”public bool HasValue { readonly get; set; }Whether Value is present.
Value: bool
public T Value { readonly get; set; }Yielded value.
Value: T
Methods
Section titled “Methods”Complete()
Section titled “Complete()”public static IteratorResult<T> Complete()A finished step.
Returns: IteratorResult<T>
public static IteratorResult<T> Of(T value)A value step.
Parameters
| Name | Type | Description |
|---|---|---|
value |
T |
Returns: IteratorResult<T>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product