Table of Contents

Class CountTokensRequest

Namespace
Glitch9.AIDevKit
public class CountTokensRequest : GenerativeRequest<CountTokensRequest, Message, CountTokensOutput, string, INoopStreamEvent<CountTokensOutput>>, IGenerativeRequest, ISequentialRequest
Inheritance
object
CountTokensRequest
Implements
Inherited Members
Extension Methods

Constructors

CountTokensRequest(Message)

public CountTokensRequest(Message prompt)

Parameters

prompt Message

Properties

ModelType

public override ModelType ModelType { get; }

Property Value

ModelType

Type

public override FluentApiRequestType Type { get; }

Property Value

FluentApiRequestType

Methods

CreateStreamAsyncInternal()

protected override UniTask<IRESTStream<INoopStreamEvent<CountTokensOutput>>> CreateStreamAsyncInternal()

Returns

UniTask<IRESTStream<INoopStreamEvent<CountTokensOutput>>>

ExecuteAsyncInternal()

protected override UniTask<CountTokensOutput> ExecuteAsyncInternal()

Returns

UniTask<CountTokensOutput>