Class CountTokensRequest
public class CountTokensRequest : GenerativeRequest<CountTokensRequest, Message, CountTokensOutput, string, INoopStreamEvent<CountTokensOutput>>, IGenerativeRequest, ISequentialRequest
- Inheritance
-
objectGenerativeRequest<CountTokensRequest, Message, CountTokensOutput, string, INoopStreamEvent<CountTokensOutput>>CountTokensRequest
- Implements
- Inherited Members
- Extension Methods
Constructors
CountTokensRequest(Message)
public CountTokensRequest(Message prompt)
Parameters
promptMessage
Properties
ModelType
public override ModelType ModelType { get; }
Property Value
Type
public override FluentApiRequestType Type { get; }
Property Value
Methods
CreateStreamAsyncInternal()
protected override UniTask<IRESTStream<INoopStreamEvent<CountTokensOutput>>> CreateStreamAsyncInternal()
Returns
- UniTask<IRESTStream<INoopStreamEvent<CountTokensOutput>>>
ExecuteAsyncInternal()
protected override UniTask<CountTokensOutput> ExecuteAsyncInternal()
Returns
- UniTask<CountTokensOutput>