35 lines
1,000 B
C#
35 lines
1,000 B
C#
using GenerativeAI.Types;
|
|
|
|
namespace BotSharp.Plugin.GoogleAI.Models.Realtime;
|
|
|
|
internal class RealtimeGenerateContentSetup
|
|
{
|
|
[JsonPropertyName("model")]
|
|
public string? Model { get; set; }
|
|
|
|
[JsonPropertyName("generationConfig")]
|
|
public GenerationConfig? GenerationConfig { get; set; }
|
|
|
|
[JsonPropertyName("systemInstruction")]
|
|
public Content? SystemInstruction { get; set; }
|
|
|
|
[JsonPropertyName("tools")]
|
|
public Tool[]? Tools { get; set; }
|
|
|
|
[JsonPropertyName("inputAudioTranscription")]
|
|
public AudioTranscriptionConfig? InputAudioTranscription { get; set; }
|
|
|
|
[JsonPropertyName("outputAudioTranscription")]
|
|
public AudioTranscriptionConfig? OutputAudioTranscription { get; set; }
|
|
|
|
[JsonPropertyName("sessionResumption")]
|
|
public SessionResumptionConfig? SessionResumption { get; set; }
|
|
}
|
|
|
|
internal class AudioTranscriptionConfig { }
|
|
|
|
internal class SessionResumptionConfig
|
|
{
|
|
[JsonPropertyName("handle")]
|
|
public string? Handle { get; set; }
|
|
} |