2025-05-13 22:33:23 +00:00
|
|
|
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; }
|
2025-05-15 04:49:36 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("sessionResumption")]
|
|
|
|
|
public SessionResumptionConfig? SessionResumption { get; set; }
|
2025-05-13 22:33:23 +00:00
|
|
|
}
|
|
|
|
|
|
2025-05-15 04:49:36 +00:00
|
|
|
internal class AudioTranscriptionConfig { }
|
|
|
|
|
|
|
|
|
|
internal class SessionResumptionConfig
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("handle")]
|
|
|
|
|
public string? Handle { get; set; }
|
|
|
|
|
}
|