Class StreamingGenerativeRequest<TSelf, TWire, TResult, TEvent, TOptions>
Inheritance
UnifiedApiRequestBase<TSelf, Generated<TResult>, TOptions>
GenerativeRequest<TSelf, TWire, TResult, TOptions>
StreamingGenerativeRequest<TSelf, TWire, TResult, TEvent, TOptions>
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public abstract class StreamingGenerativeRequest<TSelf, TWire, TResult, TEvent, TOptions> : GenerativeRequest<TSelf, TWire, TResult, TOptions>, IGenerativeRequest, IStreamingGenerativeRequest<TEvent, TResult> where TSelf : StreamingGenerativeRequest<TSelf, TWire, TResult, TEvent, TOptions> where TWire : IPrompt where TResult : class where TOptions : IProviderRequestOptions
Type Parameters
| Name | Description |
|---|---|
| TSelf | |
| TWire | |
| TResult | |
| TEvent | |
| TOptions |
Constructors
| Edit this page View SourceStreamingGenerativeRequest()
Declaration
protected StreamingGenerativeRequest()
StreamingGenerativeRequest(TWire)
Declaration
protected StreamingGenerativeRequest(TWire prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| TWire | prompt |
Methods
| Edit this page View SourceStreamAsync(CancellationToken)
Streams the generation events of type TEvent.
Declaration
public UniTask<IGenerativeStream<TEvent, TResult>> StreamAsync(CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | ct |
Returns
| Type | Description |
|---|---|
| UniTask<IGenerativeStream<TEvent, TResult>> |
StreamAsyncInternal()
Declaration
protected abstract IGenerativeStream<TEvent, TResult> StreamAsyncInternal()
Returns
| Type | Description |
|---|---|
| IGenerativeStream<TEvent, TResult> |