Class GenerateContentRequestExtensions
Inheritance
GenerateContentRequestExtensions
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public static class GenerateContentRequestExtensions
Methods
|
Edit this page
View Source
Append(GenerateContentRequest, GeminiContent)
Declaration
public static GenerateContentRequest Append(this GenerateContentRequest req, GeminiContent content)
Parameters
Returns
|
Edit this page
View Source
SetFunctionSchema(GenerateContentRequest, JsonSchema)
Declaration
public static GenerateContentRequest SetFunctionSchema(this GenerateContentRequest req, JsonSchema jsonSchema)
Parameters
Returns
|
Edit this page
View Source
SetFunctionSchema(GenerateContentRequest, Type)
Declaration
public static GenerateContentRequest SetFunctionSchema(this GenerateContentRequest req, Type type)
Parameters
Returns
|
Edit this page
View Source
SetPrompt(GenerateContentRequest, ImagePrompt)
Declaration
public static GenerateContentRequest SetPrompt(this GenerateContentRequest req, ImagePrompt prompt)
Parameters
Returns
|
Edit this page
View Source
SetTools(GenerateContentRequest, Tool[], ToolChoice)
Declaration
public static GenerateContentRequest SetTools(this GenerateContentRequest req, Tool[] tools, ToolChoice toolChoice = null)
Parameters
Returns
|
Edit this page
View Source
SetVoice(GenerateContentRequest, string)
Declaration
public static GenerateContentRequest SetVoice(this GenerateContentRequest req, string voiceId)
Parameters
Returns
|
Edit this page
View Source
SetVoiceInput(GenerateContentRequest, AudioClip)
Add STT (Speech to Text) audio prompt.
The maximum request size is 20 MB,
which includes text prompts, system instructions, and files provided inline.
If your file's size will make the total request size exceed 20 MB, then use the Files API to upload an audio file for use in the request.
If you're using an audio sample multiple times, it's more efficient to upload an audio file.
Declaration
public static GenerateContentRequest SetVoiceInput(this GenerateContentRequest req, AudioClip clip)
Parameters
Returns