CountTokensAsync(CountTokensRequest) |
Counts tokens asynchronously based on the provided request.
|
CountTokensAsync(GenerateContentRequest) |
Counts the number of tokens in the content based on the provided GenerateContentRequest.
|
CountTokensAsync(IEnumerableContent) |
Asynchronously counts the tokens in the given contents.
|
CountTokensAsync(IEnumerablePart) |
Asynchronously counts the tokens in the provided collection of parts.
|
GenerateAnswerAsync(GenerateAnswerRequest, CancellationToken) |
Generates an answer asynchronously based on the provided request.
|
GenerateAnswerAsync(String, AnswerStyle, ICollectionSafetySetting, CancellationToken) |
Generates an answer asynchronously based on the given prompt and specified parameters.
|
GenerateContentAsync(GenerateContentRequest, CancellationToken) |
Generates content asynchronously based on the given input parameters.
|
GenerateContentAsync(IEnumerablePart, CancellationToken) |
Generate content based on a sequence of Part objects.
|
GenerateContentAsync(String, CancellationToken) |
Generates content asynchronously based on the specified text input prompt.
|
GenerateContentAsync(String, String, String, CancellationToken) |
Generates content asynchronously based on the provided text prompt and an inline file path.
|
GenerateContentAsyncT(GenerateContentRequest, CancellationToken) |
Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.
|
GenerateObjectAsyncT(GenerateContentRequest, CancellationToken) |
Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.
|
GenerateObjectAsyncT(IEnumerablePart, CancellationToken) |
Generates content asynchronously using JSON mode based on the specified content generation request parts and converts the resulting JSON into a C# object of type T.
|
GenerateObjectAsyncT(String, CancellationToken) |
Generates content asynchronously using JSON mode based on the specified text input prompt and converts the resulting JSON into a C# object of type T.
|
StreamContentAsync(GenerateContentRequest, CancellationToken) |
Streams content generation results asynchronously based on a given request and optional cancellation token.
|
StreamContentAsync(IEnumerableContent, CancellationToken) |
Streams generated content as an asynchronous enumerable based on the provided request.
|
StreamContentAsync(IEnumerablePart, CancellationToken) |
Streams content generation based on a GenerateContentRequest asynchronously.
|
StreamContentAsync(String, CancellationToken) |
Streams content generation based on a string message.
|
StreamContentAsync(String, String, String, CancellationToken) |
Streams content generation asynchronously based on the given input prompt, file URI, and MIME type.
|