Search Results for

    Show / Hide Table of Contents

    Class ModelService

    Inheritance
    object
    CrudServiceBase<GoogleAIClient>
    ModelService
    Implements
    ICrudService
    IBetaService
    Inherited Members
    CrudServiceBase<GoogleAIClient>.client
    CrudServiceBase<GoogleAIClient>.ApiKey
    CrudServiceBase<GoogleAIClient>.GetUrl(params string[])
    CrudServiceBase<GoogleAIClient>.GetChildUrl(string, params string[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google.Services
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class ModelService : CrudServiceBase<GoogleAIClient>, ICrudService, IBetaService

    Constructors

    | Edit this page View Source

    ModelService(GoogleAIClient)

    Declaration
    public ModelService(GoogleAIClient client)
    Parameters
    Type Name Description
    GoogleAIClient client

    Methods

    | Edit this page View Source

    BatchEmbedContentsAsync(BatchEmbedContentsRequest, RequestOptions)

    Declaration
    public UniTask<BatchEmbedContentsResponse> BatchEmbedContentsAsync(BatchEmbedContentsRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    BatchEmbedContentsRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<BatchEmbedContentsResponse>
    | Edit this page View Source

    CountTokensAsync(GeminiCountTokensRequest, RequestOptions)

    Declaration
    public UniTask<GeminiCountTokensResponse> CountTokensAsync(GeminiCountTokensRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    GeminiCountTokensRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<GeminiCountTokensResponse>
    | Edit this page View Source

    EmbedContentAsync(EmbedContentRequest, RequestOptions)

    Declaration
    public UniTask<Embedding> EmbedContentAsync(EmbedContentRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    EmbedContentRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Embedding>
    | Edit this page View Source

    GenerateAnswerAsync(GenerateAnswerRequest, RequestOptions)

    Declaration
    public UniTask<GenerateAnswerResponse> GenerateAnswerAsync(GenerateAnswerRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    GenerateAnswerRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<GenerateAnswerResponse>
    | Edit this page View Source

    GenerateContentAsync(GenerateContentRequest, RequestOptions)

    Declaration
    public UniTask<GenerateContentResponse> GenerateContentAsync(GenerateContentRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    GenerateContentRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<GenerateContentResponse>
    | Edit this page View Source

    GenerateImageAsync(PredictionRequest, RequestOptions)

    Declaration
    public UniTask<PredictionResponse> GenerateImageAsync(PredictionRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    PredictionRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<PredictionResponse>
    | Edit this page View Source

    GenerateVideoAsync(PredictionRequest, RequestOptions)

    Declaration
    public UniTask<Generated<IVideoAsset>> GenerateVideoAsync(PredictionRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    PredictionRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Generated<IVideoAsset>>
    | Edit this page View Source

    ListAsync(TokenQuery, RequestOptions)

    Declaration
    public UniTask<Queried<GoogleAIModelInfo>> ListAsync(TokenQuery query = null, RequestOptions options = null)
    Parameters
    Type Name Description
    TokenQuery query
    RequestOptions options
    Returns
    Type Description
    UniTask<Queried<GoogleAIModelInfo>>
    | Edit this page View Source

    RetrieveAsync(string, RequestOptions)

    Declaration
    public UniTask<GoogleAIModelInfo> RetrieveAsync(string modelId, RequestOptions options = null)
    Parameters
    Type Name Description
    string modelId
    RequestOptions options
    Returns
    Type Description
    UniTask<GoogleAIModelInfo>
    | Edit this page View Source

    StreamGenerateContentAsync(GenerateContentRequest, RequestOptions)

    Declaration
    public IGenerativeStream<Delta<ITextChunk>, ChatChoice> StreamGenerateContentAsync(GenerateContentRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    GenerateContentRequest request
    RequestOptions options
    Returns
    Type Description
    IGenerativeStream<Delta<ITextChunk>, ChatChoice>

    Implements

    ICrudService
    IBetaService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation