gaato/gemini/gen does not have a README file
pub(all) suberror ValidationError {
ValidationError(parameter~ : String, message~ : String)
} derive(Debug)pub(all) struct AttributionSourceId {
semantic_retriever_chunk : SemanticRetrieverChunk?
grounding_passage : GroundingPassageId?
} derive(Eq, Debug)impl FromJson for AttributionSourceIdimpl ToJson for AttributionSourceIdfn AttributionSourceId::from_json(value : Json, path : DecodeContext) -> AttributionSourceId raise JsonDecodeErrorfn AttributionSourceId::new(semantic_retriever_chunk? : SemanticRetrieverChunk, grounding_passage? : GroundingPassageId) -> AttributionSourceIdimpl FromJson for AudioMetadataimpl ToJson for AudioMetadatafn AudioMetadata::from_json(value : Json, path : DecodeContext) -> AudioMetadata raise JsonDecodeErrorpub(all) struct AudioResponseFormat {
bit_rate : Int?
sample_rate : Int?
mime_type : AudioResponseFormatMimeType?
delivery : AudioResponseFormatDelivery?
} derive(Eq, Debug)impl FromJson for AudioResponseFormatimpl ToJson for AudioResponseFormatfn AudioResponseFormat::from_json(value : Json, path : DecodeContext) -> AudioResponseFormat raise JsonDecodeErrorfn AudioResponseFormat::new(bit_rate? : Int, sample_rate? : Int, mime_type? : AudioResponseFormatMimeType, delivery? : AudioResponseFormatDelivery) -> AudioResponseFormatimpl FromJson for AudioResponseFormatDeliveryfn from_json(value : Json, path : DecodeContext) -> AudioResponseFormatDelivery raise JsonDecodeErrorimpl ToJson for AudioResponseFormatDeliveryfn AudioResponseFormatDelivery::equal(AudioResponseFormatDelivery, AudioResponseFormatDelivery) -> Boolfn AudioResponseFormatDelivery::from_json(value : Json, path : DecodeContext) -> AudioResponseFormatDelivery raise JsonDecodeErrorfn AudioResponseFormatDelivery::not_equal(x : AudioResponseFormatDelivery, y : AudioResponseFormatDelivery) -> Boolimpl FromJson for AudioResponseFormatMimeTypefn from_json(value : Json, path : DecodeContext) -> AudioResponseFormatMimeType raise JsonDecodeErrorimpl ToJson for AudioResponseFormatMimeTypefn AudioResponseFormatMimeType::equal(AudioResponseFormatMimeType, AudioResponseFormatMimeType) -> Boolfn AudioResponseFormatMimeType::from_json(value : Json, path : DecodeContext) -> AudioResponseFormatMimeType raise JsonDecodeErrorfn AudioResponseFormatMimeType::not_equal(x : AudioResponseFormatMimeType, y : AudioResponseFormatMimeType) -> Boolimpl FromJson for AudioTranscriptionimpl ToJson for AudioTranscriptionfn AudioTranscription::from_json(value : Json, path : DecodeContext) -> AudioTranscription raise JsonDecodeErrorfn AudioTranscription::new(speaker_label? : String, text? : String, words? : Array[WordInfo]) -> AudioTranscriptionpub(all) struct AudioTranscriptionConfig {
adaptation_phrases : Array[String]?
diarization : Bool?
word_timestamp : Bool?
language_hints : LanguageHints?
source_text : String?
custom_vocabulary : Array[String]?
mode : AudioTranscriptionConfigMode?
language_codes : Array[String]?
language_auto : Json?
} derive(Eq, Debug)impl FromJson for AudioTranscriptionConfigimpl ToJson for AudioTranscriptionConfigfn AudioTranscriptionConfig::from_json(value : Json, path : DecodeContext) -> AudioTranscriptionConfig raise JsonDecodeErrorfn AudioTranscriptionConfig::new(adaptation_phrases? : Array[String], diarization? : Bool, word_timestamp? : Bool, language_hints? : LanguageHints, source_text? : String, custom_vocabulary? : Array[String], mode? : AudioTranscriptionConfigMode, language_codes? : Array[String], language_auto? : Json) -> AudioTranscriptionConfigfn AudioTranscriptionConfig::not_equal(x : AudioTranscriptionConfig, y : AudioTranscriptionConfig) -> Boolimpl FromJson for AudioTranscriptionConfigModefn from_json(value : Json, path : DecodeContext) -> AudioTranscriptionConfigMode raise JsonDecodeErrorimpl ToJson for AudioTranscriptionConfigModefn AudioTranscriptionConfigMode::equal(AudioTranscriptionConfigMode, AudioTranscriptionConfigMode) -> Boolfn AudioTranscriptionConfigMode::from_json(value : Json, path : DecodeContext) -> AudioTranscriptionConfigMode raise JsonDecodeErrorfn AudioTranscriptionConfigMode::not_equal(x : AudioTranscriptionConfigMode, y : AudioTranscriptionConfigMode) -> Boolpub(all) struct BatchEmbedContentsRequest {
requests : Array[EmbedContentRequest]?
} derive(Eq, Debug)impl FromJson for BatchEmbedContentsRequestimpl ToJson for BatchEmbedContentsRequestfn BatchEmbedContentsRequest::from_json(value : Json, path : DecodeContext) -> BatchEmbedContentsRequest raise JsonDecodeErrorfn BatchEmbedContentsRequest::new(requests? : Array[EmbedContentRequest]) -> BatchEmbedContentsRequestfn BatchEmbedContentsRequest::not_equal(x : BatchEmbedContentsRequest, y : BatchEmbedContentsRequest) -> Boolpub(all) struct BatchEmbedContentsResponse {
usage_metadata : EmbeddingUsageMetadata?
embeddings : Array[ContentEmbedding]?
} derive(Eq, Debug)impl FromJson for BatchEmbedContentsResponsefn from_json(value : Json, path : DecodeContext) -> BatchEmbedContentsResponse raise JsonDecodeErrorimpl ToJson for BatchEmbedContentsResponsefn BatchEmbedContentsResponse::equal(BatchEmbedContentsResponse, BatchEmbedContentsResponse) -> Boolfn BatchEmbedContentsResponse::from_json(value : Json, path : DecodeContext) -> BatchEmbedContentsResponse raise JsonDecodeErrorfn BatchEmbedContentsResponse::new(usage_metadata? : EmbeddingUsageMetadata, embeddings? : Array[ContentEmbedding]) -> BatchEmbedContentsResponsefn BatchEmbedContentsResponse::not_equal(x : BatchEmbedContentsResponse, y : BatchEmbedContentsResponse) -> Boolpub(all) struct CachedContent {
usage_metadata : CachedContentUsageMetadata?
update_time : String?
model : String?
create_time : String?
contents : Array[Content]?
expire_time : String?
ttl : String?
tool_config : ToolConfig?
display_name : String?
name : String?
tools : Array[Tool]?
system_instruction : Content?
} derive(Eq, Debug)impl FromJson for CachedContentimpl ToJson for CachedContentfn CachedContent::from_json(value : Json, path : DecodeContext) -> CachedContent raise JsonDecodeErrorfn CachedContent::new(usage_metadata? : CachedContentUsageMetadata, update_time? : String, model? : String, create_time? : String, contents? : Array[Content], expire_time? : String, ttl? : String, tool_config? : ToolConfig, display_name? : String, name? : String, tools? : Array[Tool], system_instruction? : Content) -> CachedContentimpl FromJson for CachedContentUsageMetadatafn from_json(value : Json, path : DecodeContext) -> CachedContentUsageMetadata raise JsonDecodeErrorimpl ToJson for CachedContentUsageMetadatafn CachedContentUsageMetadata::equal(CachedContentUsageMetadata, CachedContentUsageMetadata) -> Boolfn CachedContentUsageMetadata::from_json(value : Json, path : DecodeContext) -> CachedContentUsageMetadata raise JsonDecodeErrorfn CachedContentUsageMetadata::not_equal(x : CachedContentUsageMetadata, y : CachedContentUsageMetadata) -> Boolpub(all) struct Candidate {
continuation_token : String?
citation_metadata : CitationMetadata?
content : Content?
grounding_attributions : Array[GroundingAttribution]?
finish_reason : CandidateFinishReason?
avg_logprobs : Double?
grounding_metadata : GroundingMetadata?
safety_ratings : Array[SafetyRating]?
token_count : Int?
logprobs_result : LogprobsResult?
index : Int?
finish_message : String?
url_context_metadata : UrlContextMetadata?
} derive(Eq, Debug)fn Candidate::new(continuation_token? : String, citation_metadata? : CitationMetadata, content? : Content, grounding_attributions? : Array[GroundingAttribution], finish_reason? : CandidateFinishReason, avg_logprobs? : Double, grounding_metadata? : GroundingMetadata, safety_ratings? : Array[SafetyRating], token_count? : Int, logprobs_result? : LogprobsResult, index? : Int, finish_message? : String, url_context_metadata? : UrlContextMetadata) -> Candidatepub(all) enum CandidateFinishReason {
FINISHREASONUNSPECIFIED
STOP
MAXTOKENS
SAFETY
RECITATION
LANGUAGE
OTHER
BLOCKLIST
PROHIBITEDCONTENT
SPII
MALFORMEDFUNCTIONCALL
IMAGESAFETY
IMAGEPROHIBITEDCONTENT
IMAGEOTHER
NOIMAGE
IMAGERECITATION
UNEXPECTEDTOOLCALL
TOOMANYTOOLCALLS
MISSINGTHOUGHTSIGNATURE
MALFORMEDRESPONSE
ESCALATION
PUPLIMITEDDISABLED
CONTINUATION
Unknown(String)
} derive(Eq, Debug)impl FromJson for CandidateFinishReasonimpl ToJson for CandidateFinishReasonfn CandidateFinishReason::from_json(value : Json, path : DecodeContext) -> CandidateFinishReason raise JsonDecodeErrorimpl FromJson for CitationMetadataimpl ToJson for CitationMetadatafn CitationMetadata::from_json(value : Json, path : DecodeContext) -> CitationMetadata raise JsonDecodeErrorimpl FromJson for CitationSourceimpl ToJson for CitationSourcefn CitationSource::from_json(value : Json, path : DecodeContext) -> CitationSource raise JsonDecodeErrorfn CitationSource::new(start_index? : Int, uri? : String, end_index? : Int, license? : String) -> CitationSourcepub(all) struct CodeExecutionResult {
id : String?
outcome : CodeExecutionResultOutcome?
output : String?
} derive(Eq, Debug)impl FromJson for CodeExecutionResultimpl ToJson for CodeExecutionResultfn CodeExecutionResult::from_json(value : Json, path : DecodeContext) -> CodeExecutionResult raise JsonDecodeErrorfn CodeExecutionResult::new(id? : String, outcome? : CodeExecutionResultOutcome, output? : String) -> CodeExecutionResultimpl FromJson for CodeExecutionResultOutcomefn from_json(value : Json, path : DecodeContext) -> CodeExecutionResultOutcome raise JsonDecodeErrorimpl ToJson for CodeExecutionResultOutcomefn CodeExecutionResultOutcome::equal(CodeExecutionResultOutcome, CodeExecutionResultOutcome) -> Boolfn CodeExecutionResultOutcome::from_json(value : Json, path : DecodeContext) -> CodeExecutionResultOutcome raise JsonDecodeErrorfn CodeExecutionResultOutcome::not_equal(x : CodeExecutionResultOutcome, y : CodeExecutionResultOutcome) -> Boolpub(all) struct ComputerUse {
disabled_safety_policies : Array[ComputerUseDisabledSafetyPoliciesItem]?
excluded_predefined_functions : Array[String]?
environment : ComputerUseEnvironment?
enable_prompt_injection_detection : Bool?
} derive(Eq, Debug)impl FromJson for ComputerUseimpl ToJson for ComputerUsefn ComputerUse::new(disabled_safety_policies? : Array[ComputerUseDisabledSafetyPoliciesItem], excluded_predefined_functions? : Array[String], environment? : ComputerUseEnvironment, enable_prompt_injection_detection? : Bool) -> ComputerUsefn from_json(value : Json, path : DecodeContext) -> ComputerUseDisabledSafetyPoliciesItem raise JsonDecodeErrorfn ComputerUseDisabledSafetyPoliciesItem::from_json(value : Json, path : DecodeContext) -> ComputerUseDisabledSafetyPoliciesItem raise JsonDecodeErrorfn ComputerUseDisabledSafetyPoliciesItem::not_equal(x : ComputerUseDisabledSafetyPoliciesItem, y : ComputerUseDisabledSafetyPoliciesItem) -> Boolfn ComputerUseDisabledSafetyPoliciesItem::to_json(self : ComputerUseDisabledSafetyPoliciesItem) -> Jsonimpl FromJson for ComputerUseEnvironmentimpl ToJson for ComputerUseEnvironmentfn ComputerUseEnvironment::from_json(value : Json, path : DecodeContext) -> ComputerUseEnvironment raise JsonDecodeErrorfn ComputerUseEnvironment::not_equal(x : ComputerUseEnvironment, y : ComputerUseEnvironment) -> Boolimpl FromJson for ContentEmbeddingimpl ToJson for ContentEmbeddingfn ContentEmbedding::from_json(value : Json, path : DecodeContext) -> ContentEmbedding raise JsonDecodeErrorpub(all) struct CountTokensRequest {
contents : Array[Content]?
generate_content_request : GenerateContentRequest?
} derive(Eq, Debug)impl FromJson for CountTokensRequestimpl ToJson for CountTokensRequestfn CountTokensRequest::from_json(value : Json, path : DecodeContext) -> CountTokensRequest raise JsonDecodeErrorfn CountTokensRequest::new(contents? : Array[Content], generate_content_request? : GenerateContentRequest) -> CountTokensRequestpub(all) struct CountTokensResponse {
prompt_tokens_details : Array[ModalityTokenCount]?
cache_tokens_details : Array[ModalityTokenCount]?
cached_content_token_count : Int?
total_tokens : Int?
} derive(Eq, Debug)impl FromJson for CountTokensResponseimpl ToJson for CountTokensResponsefn CountTokensResponse::from_json(value : Json, path : DecodeContext) -> CountTokensResponse raise JsonDecodeErrorfn CountTokensResponse::new(prompt_tokens_details? : Array[ModalityTokenCount], cache_tokens_details? : Array[ModalityTokenCount], cached_content_token_count? : Int, total_tokens? : Int) -> CountTokensResponseimpl FromJson for CreateFileRequestimpl ToJson for CreateFileRequestfn CreateFileRequest::from_json(value : Json, path : DecodeContext) -> CreateFileRequest raise JsonDecodeErrorimpl FromJson for CreateFileResponseimpl ToJson for CreateFileResponsefn CreateFileResponse::from_json(value : Json, path : DecodeContext) -> CreateFileResponse raise JsonDecodeErrorpub(all) struct DocumentMetadata {
end_page : Int?
content_layers : Array[DocumentMetadataContentLayersItem]?
start_page : Int?
} derive(Eq, Debug)impl FromJson for DocumentMetadataimpl ToJson for DocumentMetadatafn DocumentMetadata::from_json(value : Json, path : DecodeContext) -> DocumentMetadata raise JsonDecodeErrorfn DocumentMetadata::new(end_page? : Int, content_layers? : Array[DocumentMetadataContentLayersItem], start_page? : Int) -> DocumentMetadatafn from_json(value : Json, path : DecodeContext) -> DocumentMetadataContentLayersItem raise JsonDecodeErrorimpl ToJson for DocumentMetadataContentLayersItemfn DocumentMetadataContentLayersItem::from_json(value : Json, path : DecodeContext) -> DocumentMetadataContentLayersItem raise JsonDecodeErrorfn DocumentMetadataContentLayersItem::not_equal(x : DocumentMetadataContentLayersItem, y : DocumentMetadataContentLayersItem) -> Boolpub(all) struct DynamicRetrievalConfig {
mode : DynamicRetrievalConfigMode?
dynamic_threshold : Double?
} derive(Eq, Debug)impl FromJson for DynamicRetrievalConfigimpl ToJson for DynamicRetrievalConfigfn DynamicRetrievalConfig::from_json(value : Json, path : DecodeContext) -> DynamicRetrievalConfig raise JsonDecodeErrorfn DynamicRetrievalConfig::new(mode? : DynamicRetrievalConfigMode, dynamic_threshold? : Double) -> DynamicRetrievalConfigfn DynamicRetrievalConfig::not_equal(x : DynamicRetrievalConfig, y : DynamicRetrievalConfig) -> Boolimpl FromJson for DynamicRetrievalConfigModefn from_json(value : Json, path : DecodeContext) -> DynamicRetrievalConfigMode raise JsonDecodeErrorimpl ToJson for DynamicRetrievalConfigModefn DynamicRetrievalConfigMode::equal(DynamicRetrievalConfigMode, DynamicRetrievalConfigMode) -> Boolfn DynamicRetrievalConfigMode::from_json(value : Json, path : DecodeContext) -> DynamicRetrievalConfigMode raise JsonDecodeErrorfn DynamicRetrievalConfigMode::not_equal(x : DynamicRetrievalConfigMode, y : DynamicRetrievalConfigMode) -> Boolpub(all) struct EmbedContentConfig {
output_dimensionality : Int?
audio_track_extraction : Bool?
title : String?
document_ocr : Bool?
task_type : EmbedContentConfigTaskType?
auto_truncate : Bool?
} derive(Eq, Debug)impl FromJson for EmbedContentConfigimpl ToJson for EmbedContentConfigfn EmbedContentConfig::from_json(value : Json, path : DecodeContext) -> EmbedContentConfig raise JsonDecodeErrorfn EmbedContentConfig::new(output_dimensionality? : Int, audio_track_extraction? : Bool, title? : String, document_ocr? : Bool, task_type? : EmbedContentConfigTaskType, auto_truncate? : Bool) -> EmbedContentConfigimpl FromJson for EmbedContentConfigTaskTypefn from_json(value : Json, path : DecodeContext) -> EmbedContentConfigTaskType raise JsonDecodeErrorimpl ToJson for EmbedContentConfigTaskTypefn EmbedContentConfigTaskType::equal(EmbedContentConfigTaskType, EmbedContentConfigTaskType) -> Boolfn EmbedContentConfigTaskType::from_json(value : Json, path : DecodeContext) -> EmbedContentConfigTaskType raise JsonDecodeErrorfn EmbedContentConfigTaskType::not_equal(x : EmbedContentConfigTaskType, y : EmbedContentConfigTaskType) -> Boolpub(all) struct EmbedContentRequest {
task_type : EmbedContentRequestTaskType?
content : Content?
output_dimensionality : Int?
embed_content_config : EmbedContentConfig?
model : String?
title : String?
} derive(Eq, Debug)impl FromJson for EmbedContentRequestimpl ToJson for EmbedContentRequestfn EmbedContentRequest::from_json(value : Json, path : DecodeContext) -> EmbedContentRequest raise JsonDecodeErrorfn EmbedContentRequest::new(task_type? : EmbedContentRequestTaskType, content? : Content, output_dimensionality? : Int, embed_content_config? : EmbedContentConfig, model? : String, title? : String) -> EmbedContentRequestimpl FromJson for EmbedContentRequestTaskTypefn from_json(value : Json, path : DecodeContext) -> EmbedContentRequestTaskType raise JsonDecodeErrorimpl ToJson for EmbedContentRequestTaskTypefn EmbedContentRequestTaskType::equal(EmbedContentRequestTaskType, EmbedContentRequestTaskType) -> Boolfn EmbedContentRequestTaskType::from_json(value : Json, path : DecodeContext) -> EmbedContentRequestTaskType raise JsonDecodeErrorfn EmbedContentRequestTaskType::not_equal(x : EmbedContentRequestTaskType, y : EmbedContentRequestTaskType) -> Boolpub(all) struct EmbedContentResponse {
embedding : ContentEmbedding?
usage_metadata : EmbeddingUsageMetadata?
} derive(Eq, Debug)impl FromJson for EmbedContentResponseimpl ToJson for EmbedContentResponsefn EmbedContentResponse::from_json(value : Json, path : DecodeContext) -> EmbedContentResponse raise JsonDecodeErrorfn EmbedContentResponse::new(embedding? : ContentEmbedding, usage_metadata? : EmbeddingUsageMetadata) -> EmbedContentResponsepub(all) struct EmbeddingUsageMetadata {
prompt_token_count : Int?
prompt_token_details : Array[ModalityTokenCount]?
} derive(Eq, Debug)impl FromJson for EmbeddingUsageMetadataimpl ToJson for EmbeddingUsageMetadatafn EmbeddingUsageMetadata::from_json(value : Json, path : DecodeContext) -> EmbeddingUsageMetadata raise JsonDecodeErrorfn EmbeddingUsageMetadata::new(prompt_token_count? : Int, prompt_token_details? : Array[ModalityTokenCount]) -> EmbeddingUsageMetadatafn EmbeddingUsageMetadata::not_equal(x : EmbeddingUsageMetadata, y : EmbeddingUsageMetadata) -> Boolpub(all) struct ExecutableCode {
code : String?
language : ExecutableCodeLanguage?
id : String?
} derive(Eq, Debug)impl FromJson for ExecutableCodeimpl ToJson for ExecutableCodefn ExecutableCode::from_json(value : Json, path : DecodeContext) -> ExecutableCode raise JsonDecodeErrorfn ExecutableCode::new(code? : String, language? : ExecutableCodeLanguage, id? : String) -> ExecutableCodeimpl FromJson for ExecutableCodeLanguageimpl ToJson for ExecutableCodeLanguagefn ExecutableCodeLanguage::from_json(value : Json, path : DecodeContext) -> ExecutableCodeLanguage raise JsonDecodeErrorfn ExecutableCodeLanguage::not_equal(x : ExecutableCodeLanguage, y : ExecutableCodeLanguage) -> Boolpub(all) struct File {
create_time : String?
mime_type : String?
download_uri : String?
display_name : String?
state : FileState?
uri : String?
update_time : String?
size_bytes : Int64?
expiration_time : String?
video_metadata : VideoFileMetadata?
source : FileSource?
name : String?
sha256_hash : String?
error : Status?
} derive(Eq, Debug)fn File::new(create_time? : String, mime_type? : String, download_uri? : String, display_name? : String, state? : FileState, uri? : String, update_time? : String, size_bytes? : Int64, expiration_time? : String, video_metadata? : VideoFileMetadata, source? : FileSource, name? : String, sha256_hash? : String, error? : Status) -> Fileimpl FromJson for FileSearchimpl ToJson for FileSearchfn FileSearch::new(file_search_store_names? : Array[String], top_k? : Int, metadata_filter? : String) -> FileSearchimpl FromJson for FileSourceimpl ToJson for FileSourceimpl FromJson for FunctionCallimpl ToJson for FunctionCallfn FunctionCall::from_json(value : Json, path : DecodeContext) -> FunctionCall raise JsonDecodeErrorpub(all) struct FunctionCallingConfig {
mode : FunctionCallingConfigMode?
allowed_function_names : Array[String]?
} derive(Eq, Debug)impl FromJson for FunctionCallingConfigimpl ToJson for FunctionCallingConfigfn FunctionCallingConfig::from_json(value : Json, path : DecodeContext) -> FunctionCallingConfig raise JsonDecodeErrorfn FunctionCallingConfig::new(mode? : FunctionCallingConfigMode, allowed_function_names? : Array[String]) -> FunctionCallingConfigimpl FromJson for FunctionCallingConfigModeimpl ToJson for FunctionCallingConfigModefn FunctionCallingConfigMode::from_json(value : Json, path : DecodeContext) -> FunctionCallingConfigMode raise JsonDecodeErrorfn FunctionCallingConfigMode::not_equal(x : FunctionCallingConfigMode, y : FunctionCallingConfigMode) -> Boolimpl FromJson for FunctionDeclarationimpl ToJson for FunctionDeclarationfn FunctionDeclaration::from_json(value : Json, path : DecodeContext) -> FunctionDeclaration raise JsonDecodeErrorfn FunctionDeclaration::new(name? : String, response? : Schema, behavior? : FunctionDeclarationBehavior, description? : String, parameters? : Schema, response_json_schema? : Json, parameters_json_schema? : Json) -> FunctionDeclarationimpl FromJson for FunctionDeclarationBehaviorfn from_json(value : Json, path : DecodeContext) -> FunctionDeclarationBehavior raise JsonDecodeErrorimpl ToJson for FunctionDeclarationBehaviorfn FunctionDeclarationBehavior::equal(FunctionDeclarationBehavior, FunctionDeclarationBehavior) -> Boolfn FunctionDeclarationBehavior::from_json(value : Json, path : DecodeContext) -> FunctionDeclarationBehavior raise JsonDecodeErrorfn FunctionDeclarationBehavior::not_equal(x : FunctionDeclarationBehavior, y : FunctionDeclarationBehavior) -> Boolpub(all) struct FunctionResponse {
will_continue : Bool?
name : String?
scheduling : FunctionResponseScheduling?
id : String?
response : Map[String, Json]?
parts : Array[FunctionResponsePart]?
} derive(Eq, Debug)impl FromJson for FunctionResponseimpl ToJson for FunctionResponsefn FunctionResponse::from_json(value : Json, path : DecodeContext) -> FunctionResponse raise JsonDecodeErrorfn FunctionResponse::new(will_continue? : Bool, name? : String, scheduling? : FunctionResponseScheduling, id? : String, response? : Map[String, Json], parts? : Array[FunctionResponsePart]) -> FunctionResponseimpl FromJson for FunctionResponseBlobimpl ToJson for FunctionResponseBlobfn FunctionResponseBlob::from_json(value : Json, path : DecodeContext) -> FunctionResponseBlob raise JsonDecodeErrorfn FunctionResponseBlob::new(data? : String, display_name? : String, mime_type? : String) -> FunctionResponseBlobimpl FromJson for FunctionResponseFileDataimpl ToJson for FunctionResponseFileDatafn FunctionResponseFileData::from_json(value : Json, path : DecodeContext) -> FunctionResponseFileData raise JsonDecodeErrorfn FunctionResponseFileData::new(file_uri? : String, mime_type? : String, display_name? : String) -> FunctionResponseFileDatafn FunctionResponseFileData::not_equal(x : FunctionResponseFileData, y : FunctionResponseFileData) -> Boolpub(all) struct FunctionResponsePart {
file_data : FunctionResponseFileData?
spreadsheet_metadata : SpreadsheetMetadata?
media_processing : FunctionResponsePartMediaProcessing?
inline_data : FunctionResponseBlob?
video_metadata : VideoMetadata?
document_metadata : DocumentMetadata?
media_resolution : V1mainMediaResolution?
audio_metadata : AudioMetadata?
} derive(Eq, Debug)impl FromJson for FunctionResponsePartimpl ToJson for FunctionResponsePartfn FunctionResponsePart::from_json(value : Json, path : DecodeContext) -> FunctionResponsePart raise JsonDecodeErrorfn FunctionResponsePart::new(file_data? : FunctionResponseFileData, spreadsheet_metadata? : SpreadsheetMetadata, media_processing? : FunctionResponsePartMediaProcessing, inline_data? : FunctionResponseBlob, video_metadata? : VideoMetadata, document_metadata? : DocumentMetadata, media_resolution? : V1mainMediaResolution, audio_metadata? : AudioMetadata) -> FunctionResponsePartfn from_json(value : Json, path : DecodeContext) -> FunctionResponsePartMediaProcessing raise JsonDecodeErrorfn FunctionResponsePartMediaProcessing::from_json(value : Json, path : DecodeContext) -> FunctionResponsePartMediaProcessing raise JsonDecodeErrorfn FunctionResponsePartMediaProcessing::not_equal(x : FunctionResponsePartMediaProcessing, y : FunctionResponsePartMediaProcessing) -> Boolimpl FromJson for FunctionResponseSchedulingfn from_json(value : Json, path : DecodeContext) -> FunctionResponseScheduling raise JsonDecodeErrorimpl ToJson for FunctionResponseSchedulingfn FunctionResponseScheduling::equal(FunctionResponseScheduling, FunctionResponseScheduling) -> Boolfn FunctionResponseScheduling::from_json(value : Json, path : DecodeContext) -> FunctionResponseScheduling raise JsonDecodeErrorfn FunctionResponseScheduling::not_equal(x : FunctionResponseScheduling, y : FunctionResponseScheduling) -> Boolpub(all) struct GenerateContentRequest {
continuation_token : String?
generation_config : GenerationConfig?
contents : Array[Content]?
service_tier : GenerateContentRequestServiceTier?
model : String?
tool_config : ToolConfig?
safety_settings : Array[SafetySetting]?
system_instruction : Content?
tools : Array[Tool]?
cached_content : String?
labels : Map[String, String]?
store : Bool?
} derive(Eq, Debug)impl FromJson for GenerateContentRequestimpl ToJson for GenerateContentRequestfn GenerateContentRequest::from_json(value : Json, path : DecodeContext) -> GenerateContentRequest raise JsonDecodeErrorfn GenerateContentRequest::new(continuation_token? : String, generation_config? : GenerationConfig, contents? : Array[Content], service_tier? : GenerateContentRequestServiceTier, model? : String, tool_config? : ToolConfig, safety_settings? : Array[SafetySetting], system_instruction? : Content, tools? : Array[Tool], cached_content? : String, labels? : Map[String, String], store? : Bool) -> GenerateContentRequestfn GenerateContentRequest::not_equal(x : GenerateContentRequest, y : GenerateContentRequest) -> Boolfn from_json(value : Json, path : DecodeContext) -> GenerateContentRequestServiceTier raise JsonDecodeErrorimpl ToJson for GenerateContentRequestServiceTierfn GenerateContentRequestServiceTier::from_json(value : Json, path : DecodeContext) -> GenerateContentRequestServiceTier raise JsonDecodeErrorfn GenerateContentRequestServiceTier::not_equal(x : GenerateContentRequestServiceTier, y : GenerateContentRequestServiceTier) -> Boolpub(all) struct GenerateContentResponse {
response_id : String?
usage_metadata : UsageMetadata?
candidates : Array[Candidate]?
model_version : String?
prompt_feedback : PromptFeedback?
model_status : ModelStatus?
} derive(Eq, Debug)impl FromJson for GenerateContentResponseimpl ToJson for GenerateContentResponsefn GenerateContentResponse::from_json(value : Json, path : DecodeContext) -> GenerateContentResponse raise JsonDecodeErrorfn GenerateContentResponse::new(response_id? : String, usage_metadata? : UsageMetadata, candidates? : Array[Candidate], model_version? : String, prompt_feedback? : PromptFeedback, model_status? : ModelStatus) -> GenerateContentResponsefn GenerateContentResponse::not_equal(x : GenerateContentResponse, y : GenerateContentResponse) -> Boolpub(all) struct GenerationConfig {
response_modalities : Array[GenerationConfigResponseModalitiesItem]?
translation_config : TranslationConfig?
speech_config : SpeechConfig?
presence_penalty : Double?
temperature : Double?
candidate_count : Int?
media_resolution : GenerationConfigMediaResolution?
frequency_penalty : Double?
enable_affective_dialog : Bool?
response_format : ResponseFormatConfig?
stop_sequences : Array[String]?
response_schema : Schema?
response_json_schema : Json?
logprobs : Int?
image_config : ImageConfig?
seed : Int?
enable_enhanced_civic_answers : Bool?
max_output_tokens : Int?
thinking_config : ThinkingConfig?
response_logprobs : Bool?
response_json_schema_2 : Json?
response_mime_type : String?
top_p : Double?
audio_transcription_config : AudioTranscriptionConfig?
top_k : Int?
} derive(Eq, Debug)impl FromJson for GenerationConfigimpl ToJson for GenerationConfigfn GenerationConfig::from_json(value : Json, path : DecodeContext) -> GenerationConfig raise JsonDecodeErrorfn GenerationConfig::new(response_modalities? : Array[GenerationConfigResponseModalitiesItem], translation_config? : TranslationConfig, speech_config? : SpeechConfig, presence_penalty? : Double, temperature? : Double, candidate_count? : Int, media_resolution? : GenerationConfigMediaResolution, frequency_penalty? : Double, enable_affective_dialog? : Bool, response_format? : ResponseFormatConfig, stop_sequences? : Array[String], response_schema? : Schema, response_json_schema? : Json, logprobs? : Int, image_config? : ImageConfig, seed? : Int, enable_enhanced_civic_answers? : Bool, max_output_tokens? : Int, thinking_config? : ThinkingConfig, response_logprobs? : Bool, response_json_schema_2? : Json, response_mime_type? : String, top_p? : Double, audio_transcription_config? : AudioTranscriptionConfig, top_k? : Int) -> GenerationConfigimpl FromJson for GenerationConfigMediaResolutionfn from_json(value : Json, path : DecodeContext) -> GenerationConfigMediaResolution raise JsonDecodeErrorimpl ToJson for GenerationConfigMediaResolutionfn GenerationConfigMediaResolution::from_json(value : Json, path : DecodeContext) -> GenerationConfigMediaResolution raise JsonDecodeErrorfn GenerationConfigMediaResolution::not_equal(x : GenerationConfigMediaResolution, y : GenerationConfigMediaResolution) -> Boolfn from_json(value : Json, path : DecodeContext) -> GenerationConfigResponseModalitiesItem raise JsonDecodeErrorfn GenerationConfigResponseModalitiesItem::from_json(value : Json, path : DecodeContext) -> GenerationConfigResponseModalitiesItem raise JsonDecodeErrorfn GenerationConfigResponseModalitiesItem::not_equal(x : GenerationConfigResponseModalitiesItem, y : GenerationConfigResponseModalitiesItem) -> Boolfn GenerationConfigResponseModalitiesItem::to_json(self : GenerationConfigResponseModalitiesItem) -> Jsonfn from_json(value : Json, path : DecodeContext) -> GoogleAiGenerativelanguageV1betaGroundingSupport raise JsonDecodeErrorfn GoogleAiGenerativelanguageV1betaGroundingSupport::from_json(value : Json, path : DecodeContext) -> GoogleAiGenerativelanguageV1betaGroundingSupport raise JsonDecodeErrorfn GoogleAiGenerativelanguageV1betaGroundingSupport::new(segment? : GoogleAiGenerativelanguageV1betaSegment, confidence_scores? : Array[Double], grounding_chunk_indices? : Array[Int], rendered_parts? : Array[Int]) -> GoogleAiGenerativelanguageV1betaGroundingSupportfn GoogleAiGenerativelanguageV1betaGroundingSupport::to_json(self : GoogleAiGenerativelanguageV1betaGroundingSupport) -> Jsonfn from_json(value : Json, path : DecodeContext) -> GoogleAiGenerativelanguageV1betaSegment raise JsonDecodeErrorfn GoogleAiGenerativelanguageV1betaSegment::from_json(value : Json, path : DecodeContext) -> GoogleAiGenerativelanguageV1betaSegment raise JsonDecodeErrorfn GoogleAiGenerativelanguageV1betaSegment::new(text? : String, start_index? : Int, end_index? : Int, part_index? : Int) -> GoogleAiGenerativelanguageV1betaSegmentfn GoogleAiGenerativelanguageV1betaSegment::not_equal(x : GoogleAiGenerativelanguageV1betaSegment, y : GoogleAiGenerativelanguageV1betaSegment) -> Boolfn GoogleAiGenerativelanguageV1betaSegment::to_json(self : GoogleAiGenerativelanguageV1betaSegment) -> Jsonimpl FromJson for GoogleErrorimpl ToJson for GoogleErrorimpl FromJson for GoogleErrorStatusimpl ToJson for GoogleErrorStatusfn GoogleErrorStatus::from_json(value : Json, path : DecodeContext) -> GoogleErrorStatus raise JsonDecodeErrorfn GoogleErrorStatus::new(code~ : Int, message~ : String, status~ : String, details? : Array[Json]) -> GoogleErrorStatusimpl FromJson for GoogleMapsimpl ToJson for GoogleMapspub(all) struct GoogleSearch {
search_types : SearchTypes?
time_range_filter : Interval?
} derive(Eq, Debug)impl FromJson for GoogleSearchimpl ToJson for GoogleSearchfn GoogleSearch::from_json(value : Json, path : DecodeContext) -> GoogleSearch raise JsonDecodeErrorpub(all) struct GoogleSearchRetrieval {
dynamic_retrieval_config : DynamicRetrievalConfig?
} derive(Eq, Debug)impl FromJson for GoogleSearchRetrievalimpl ToJson for GoogleSearchRetrievalfn GoogleSearchRetrieval::from_json(value : Json, path : DecodeContext) -> GoogleSearchRetrieval raise JsonDecodeErrorfn GoogleSearchRetrieval::new(dynamic_retrieval_config? : DynamicRetrievalConfig) -> GoogleSearchRetrievalpub(all) struct GroundingAttribution {
source_id : AttributionSourceId?
content : Content?
} derive(Eq, Debug)impl FromJson for GroundingAttributionimpl ToJson for GroundingAttributionfn GroundingAttribution::from_json(value : Json, path : DecodeContext) -> GroundingAttribution raise JsonDecodeErrorfn GroundingAttribution::new(source_id? : AttributionSourceId, content? : Content) -> GroundingAttributionimpl FromJson for GroundingChunkimpl ToJson for GroundingChunkfn GroundingChunk::from_json(value : Json, path : DecodeContext) -> GroundingChunk raise JsonDecodeErrorfn GroundingChunk::new(retrieved_context? : RetrievedContext, web? : Web, maps? : Maps, image? : Image) -> GroundingChunkpub(all) struct GroundingChunkCustomMetadata {
string_list_value : GroundingChunkStringList?
numeric_value : Double?
key : String?
string_value : String?
} derive(Eq, Debug)impl FromJson for GroundingChunkCustomMetadatafn from_json(value : Json, path : DecodeContext) -> GroundingChunkCustomMetadata raise JsonDecodeErrorimpl ToJson for GroundingChunkCustomMetadatafn GroundingChunkCustomMetadata::equal(GroundingChunkCustomMetadata, GroundingChunkCustomMetadata) -> Boolfn GroundingChunkCustomMetadata::from_json(value : Json, path : DecodeContext) -> GroundingChunkCustomMetadata raise JsonDecodeErrorfn GroundingChunkCustomMetadata::new(string_list_value? : GroundingChunkStringList, numeric_value? : Double, key? : String, string_value? : String) -> GroundingChunkCustomMetadatafn GroundingChunkCustomMetadata::not_equal(x : GroundingChunkCustomMetadata, y : GroundingChunkCustomMetadata) -> Boolimpl FromJson for GroundingChunkStringListimpl ToJson for GroundingChunkStringListfn GroundingChunkStringList::from_json(value : Json, path : DecodeContext) -> GroundingChunkStringList raise JsonDecodeErrorfn GroundingChunkStringList::not_equal(x : GroundingChunkStringList, y : GroundingChunkStringList) -> Boolpub(all) struct GroundingMetadata {
grounding_chunks : Array[GroundingChunk]?
google_maps_widget_context_token : String?
grounding_supports : Array[GoogleAiGenerativelanguageV1betaGroundingSupport]?
retrieval_metadata : RetrievalMetadata?
image_search_queries : Array[String]?
web_search_queries : Array[String]?
search_entry_point : SearchEntryPoint?
} derive(Eq, Debug)impl FromJson for GroundingMetadataimpl ToJson for GroundingMetadatafn GroundingMetadata::from_json(value : Json, path : DecodeContext) -> GroundingMetadata raise JsonDecodeErrorfn GroundingMetadata::new(grounding_chunks? : Array[GroundingChunk], google_maps_widget_context_token? : String, grounding_supports? : Array[GoogleAiGenerativelanguageV1betaGroundingSupport], retrieval_metadata? : RetrievalMetadata, image_search_queries? : Array[String], web_search_queries? : Array[String], search_entry_point? : SearchEntryPoint) -> GroundingMetadataimpl FromJson for GroundingPassageIdimpl ToJson for GroundingPassageIdfn GroundingPassageId::from_json(value : Json, path : DecodeContext) -> GroundingPassageId raise JsonDecodeErrorimpl FromJson for ImageConfigimpl ToJson for ImageConfigpub(all) struct ImageResponseFormat {
mime_type : ImageResponseFormatMimeType?
delivery : ImageResponseFormatDelivery?
aspect_ratio : ImageResponseFormatAspectRatio?
image_size : ImageResponseFormatImageSize?
} derive(Eq, Debug)impl FromJson for ImageResponseFormatimpl ToJson for ImageResponseFormatfn ImageResponseFormat::from_json(value : Json, path : DecodeContext) -> ImageResponseFormat raise JsonDecodeErrorfn ImageResponseFormat::new(mime_type? : ImageResponseFormatMimeType, delivery? : ImageResponseFormatDelivery, aspect_ratio? : ImageResponseFormatAspectRatio, image_size? : ImageResponseFormatImageSize) -> ImageResponseFormatpub(all) enum ImageResponseFormatAspectRatio {
ASPECTRATIOUNSPECIFIED
ASPECTRATIOONEBYONE
ASPECTRATIOTWOBYTHREE
ASPECTRATIOTHREEBYTWO
ASPECTRATIOTHREEBYFOUR
ASPECTRATIOFOURBYTHREE
ASPECTRATIOFOURBYFIVE
ASPECTRATIOFIVEBYFOUR
ASPECTRATIONINEBYSIXTEEN
ASPECTRATIOSIXTEENBYNINE
ASPECTRATIOTWENTYONEBYNINE
ASPECTRATIOONEBYEIGHT
ASPECTRATIOEIGHTBYONE
ASPECTRATIOONEBYFOUR
ASPECTRATIOFOURBYONE
Custom(String)
} derive(Eq, Debug)impl FromJson for ImageResponseFormatAspectRatiofn from_json(value : Json, path : DecodeContext) -> ImageResponseFormatAspectRatio raise JsonDecodeErrorimpl ToJson for ImageResponseFormatAspectRatiofn ImageResponseFormatAspectRatio::from_json(value : Json, path : DecodeContext) -> ImageResponseFormatAspectRatio raise JsonDecodeErrorfn ImageResponseFormatAspectRatio::not_equal(x : ImageResponseFormatAspectRatio, y : ImageResponseFormatAspectRatio) -> Boolimpl FromJson for ImageResponseFormatDeliveryfn from_json(value : Json, path : DecodeContext) -> ImageResponseFormatDelivery raise JsonDecodeErrorimpl ToJson for ImageResponseFormatDeliveryfn ImageResponseFormatDelivery::equal(ImageResponseFormatDelivery, ImageResponseFormatDelivery) -> Boolfn ImageResponseFormatDelivery::from_json(value : Json, path : DecodeContext) -> ImageResponseFormatDelivery raise JsonDecodeErrorfn ImageResponseFormatDelivery::not_equal(x : ImageResponseFormatDelivery, y : ImageResponseFormatDelivery) -> Boolimpl FromJson for ImageResponseFormatImageSizefn from_json(value : Json, path : DecodeContext) -> ImageResponseFormatImageSize raise JsonDecodeErrorimpl ToJson for ImageResponseFormatImageSizefn ImageResponseFormatImageSize::equal(ImageResponseFormatImageSize, ImageResponseFormatImageSize) -> Boolfn ImageResponseFormatImageSize::from_json(value : Json, path : DecodeContext) -> ImageResponseFormatImageSize raise JsonDecodeErrorfn ImageResponseFormatImageSize::not_equal(x : ImageResponseFormatImageSize, y : ImageResponseFormatImageSize) -> Boolimpl FromJson for ImageResponseFormatMimeTypefn from_json(value : Json, path : DecodeContext) -> ImageResponseFormatMimeType raise JsonDecodeErrorimpl ToJson for ImageResponseFormatMimeTypefn ImageResponseFormatMimeType::equal(ImageResponseFormatMimeType, ImageResponseFormatMimeType) -> Boolfn ImageResponseFormatMimeType::from_json(value : Json, path : DecodeContext) -> ImageResponseFormatMimeType raise JsonDecodeErrorfn ImageResponseFormatMimeType::not_equal(x : ImageResponseFormatMimeType, y : ImageResponseFormatMimeType) -> Boolimpl FromJson for LanguageHintsimpl ToJson for LanguageHintsfn LanguageHints::from_json(value : Json, path : DecodeContext) -> LanguageHints raise JsonDecodeErrorpub(all) struct ListCachedContentsResponse {
cached_contents : Array[CachedContent]?
next_page_token : String?
} derive(Eq, Debug)impl FromJson for ListCachedContentsResponsefn from_json(value : Json, path : DecodeContext) -> ListCachedContentsResponse raise JsonDecodeErrorimpl ToJson for ListCachedContentsResponsefn ListCachedContentsResponse::equal(ListCachedContentsResponse, ListCachedContentsResponse) -> Boolfn ListCachedContentsResponse::from_json(value : Json, path : DecodeContext) -> ListCachedContentsResponse raise JsonDecodeErrorfn ListCachedContentsResponse::new(cached_contents? : Array[CachedContent], next_page_token? : String) -> ListCachedContentsResponsefn ListCachedContentsResponse::not_equal(x : ListCachedContentsResponse, y : ListCachedContentsResponse) -> Boolimpl FromJson for ListFilesResponseimpl ToJson for ListFilesResponsefn ListFilesResponse::from_json(value : Json, path : DecodeContext) -> ListFilesResponse raise JsonDecodeErrorimpl FromJson for ListModelsResponseimpl ToJson for ListModelsResponsefn ListModelsResponse::from_json(value : Json, path : DecodeContext) -> ListModelsResponse raise JsonDecodeErrorpub(all) struct LogprobsResult {
top_candidates : Array[TopCandidates]?
log_probability_sum : Double?
chosen_candidates : Array[LogprobsResultCandidate]?
} derive(Eq, Debug)impl FromJson for LogprobsResultimpl ToJson for LogprobsResultfn LogprobsResult::from_json(value : Json, path : DecodeContext) -> LogprobsResult raise JsonDecodeErrorfn LogprobsResult::new(top_candidates? : Array[TopCandidates], log_probability_sum? : Double, chosen_candidates? : Array[LogprobsResultCandidate]) -> LogprobsResultimpl FromJson for LogprobsResultCandidateimpl ToJson for LogprobsResultCandidatefn LogprobsResultCandidate::from_json(value : Json, path : DecodeContext) -> LogprobsResultCandidate raise JsonDecodeErrorfn LogprobsResultCandidate::new(token_id? : Int, token? : String, log_probability? : Double) -> LogprobsResultCandidatefn LogprobsResultCandidate::not_equal(x : LogprobsResultCandidate, y : LogprobsResultCandidate) -> Boolpub(all) struct Maps {
place_answer_sources : PlaceAnswerSources?
text : String?
uri : String?
title : String?
place_id : String?
} derive(Eq, Debug)fn Maps::new(place_answer_sources? : PlaceAnswerSources, text? : String, uri? : String, title? : String, place_id? : String) -> Mapspub(all) struct McpServer {
streamable_http_transport : StreamableHttpTransport?
name : String?
} derive(Eq, Debug)fn McpServer::new(streamable_http_transport? : StreamableHttpTransport, name? : String) -> McpServerpub(all) struct ModalityTokenCount {
modality : ModalityTokenCountModality?
token_count : Int?
} derive(Eq, Debug)impl FromJson for ModalityTokenCountimpl ToJson for ModalityTokenCountfn ModalityTokenCount::from_json(value : Json, path : DecodeContext) -> ModalityTokenCount raise JsonDecodeErrorfn ModalityTokenCount::new(modality? : ModalityTokenCountModality, token_count? : Int) -> ModalityTokenCountimpl FromJson for ModalityTokenCountModalityfn from_json(value : Json, path : DecodeContext) -> ModalityTokenCountModality raise JsonDecodeErrorimpl ToJson for ModalityTokenCountModalityfn ModalityTokenCountModality::equal(ModalityTokenCountModality, ModalityTokenCountModality) -> Boolfn ModalityTokenCountModality::from_json(value : Json, path : DecodeContext) -> ModalityTokenCountModality raise JsonDecodeErrorfn ModalityTokenCountModality::not_equal(x : ModalityTokenCountModality, y : ModalityTokenCountModality) -> Boolpub(all) struct Model {
top_p : Double?
top_k : Int?
supported_generation_methods : Array[String]?
temperature : Double?
max_temperature : Double?
description : String?
output_token_limit : Int?
display_name : String?
input_token_limit : Int?
thinking : Bool?
base_model_id : String?
name : String?
version : String?
} derive(Eq, Debug)fn Model::new(top_p? : Double, top_k? : Int, supported_generation_methods? : Array[String], temperature? : Double, max_temperature? : Double, description? : String, output_token_limit? : Int, display_name? : String, input_token_limit? : Int, thinking? : Bool, base_model_id? : String, name? : String, version? : String) -> Modelpub(all) struct ModelStatus {
message : String?
retirement_time : String?
model_stage : ModelStatusModelStage?
} derive(Eq, Debug)impl FromJson for ModelStatusimpl ToJson for ModelStatusfn ModelStatus::new(message? : String, retirement_time? : String, model_stage? : ModelStatusModelStage) -> ModelStatusimpl FromJson for ModelStatusModelStageimpl ToJson for ModelStatusModelStagefn ModelStatusModelStage::from_json(value : Json, path : DecodeContext) -> ModelStatusModelStage raise JsonDecodeErrorpub(all) struct MultiSpeakerVoiceConfig {
speaker_voice_configs : Array[SpeakerVoiceConfig]?
} derive(Eq, Debug)impl FromJson for MultiSpeakerVoiceConfigimpl ToJson for MultiSpeakerVoiceConfigfn MultiSpeakerVoiceConfig::from_json(value : Json, path : DecodeContext) -> MultiSpeakerVoiceConfig raise JsonDecodeErrorfn MultiSpeakerVoiceConfig::new(speaker_voice_configs? : Array[SpeakerVoiceConfig]) -> MultiSpeakerVoiceConfigfn MultiSpeakerVoiceConfig::not_equal(x : MultiSpeakerVoiceConfig, y : MultiSpeakerVoiceConfig) -> Boolpub(all) enum Part {
Text(PartText)
InlineData(PartInlineData)
FileData(PartFileData)
FunctionCall(PartFunctionCall)
FunctionResponse(PartFunctionResponse)
ExecutableCode(PartExecutableCode)
CodeExecutionResult(PartCodeExecutionResult)
ToolCall(PartToolCall)
ToolResponse(PartToolResponse)
} derive(Eq, Debug)pub(all) struct PartCodeExecutionResult {
speech_metadata : SpeechMetadata?
code_execution_result : CodeExecutionResult
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
media_processing : PartCodeExecutionResultMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartCodeExecutionResultimpl ToJson for PartCodeExecutionResultfn PartCodeExecutionResult::from_json(value : Json, path : DecodeContext) -> PartCodeExecutionResult raise JsonDecodeErrorfn PartCodeExecutionResult::new(code_execution_result~ : CodeExecutionResult, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartCodeExecutionResultMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartCodeExecutionResultfn PartCodeExecutionResult::not_equal(x : PartCodeExecutionResult, y : PartCodeExecutionResult) -> Boolfn from_json(value : Json, path : DecodeContext) -> PartCodeExecutionResultMediaProcessing raise JsonDecodeErrorfn PartCodeExecutionResultMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartCodeExecutionResultMediaProcessing raise JsonDecodeErrorfn PartCodeExecutionResultMediaProcessing::not_equal(x : PartCodeExecutionResultMediaProcessing, y : PartCodeExecutionResultMediaProcessing) -> Boolfn PartCodeExecutionResultMediaProcessing::to_json(self : PartCodeExecutionResultMediaProcessing) -> Jsonpub(all) struct PartExecutableCode {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
executable_code : ExecutableCode
media_processing : PartExecutableCodeMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartExecutableCodeimpl ToJson for PartExecutableCodefn PartExecutableCode::from_json(value : Json, path : DecodeContext) -> PartExecutableCode raise JsonDecodeErrorfn PartExecutableCode::new(executable_code~ : ExecutableCode, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartExecutableCodeMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartExecutableCodefn from_json(value : Json, path : DecodeContext) -> PartExecutableCodeMediaProcessing raise JsonDecodeErrorimpl ToJson for PartExecutableCodeMediaProcessingfn PartExecutableCodeMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartExecutableCodeMediaProcessing raise JsonDecodeErrorfn PartExecutableCodeMediaProcessing::not_equal(x : PartExecutableCodeMediaProcessing, y : PartExecutableCodeMediaProcessing) -> Boolpub(all) struct PartFileData {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
file_data : FileData
part_metadata : Map[String, Json]?
media_processing : PartFileDataMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartFileDataimpl ToJson for PartFileDatafn PartFileData::from_json(value : Json, path : DecodeContext) -> PartFileData raise JsonDecodeErrorfn PartFileData::new(file_data~ : FileData, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartFileDataMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartFileDataimpl FromJson for PartFileDataMediaProcessingfn from_json(value : Json, path : DecodeContext) -> PartFileDataMediaProcessing raise JsonDecodeErrorimpl ToJson for PartFileDataMediaProcessingfn PartFileDataMediaProcessing::equal(PartFileDataMediaProcessing, PartFileDataMediaProcessing) -> Boolfn PartFileDataMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartFileDataMediaProcessing raise JsonDecodeErrorfn PartFileDataMediaProcessing::not_equal(x : PartFileDataMediaProcessing, y : PartFileDataMediaProcessing) -> Boolpub(all) struct PartFunctionCall {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
media_processing : PartFunctionCallMediaProcessing?
function_call : FunctionCall
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartFunctionCallimpl ToJson for PartFunctionCallfn PartFunctionCall::from_json(value : Json, path : DecodeContext) -> PartFunctionCall raise JsonDecodeErrorfn PartFunctionCall::new(function_call~ : FunctionCall, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartFunctionCallMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartFunctionCallimpl FromJson for PartFunctionCallMediaProcessingfn from_json(value : Json, path : DecodeContext) -> PartFunctionCallMediaProcessing raise JsonDecodeErrorimpl ToJson for PartFunctionCallMediaProcessingfn PartFunctionCallMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartFunctionCallMediaProcessing raise JsonDecodeErrorfn PartFunctionCallMediaProcessing::not_equal(x : PartFunctionCallMediaProcessing, y : PartFunctionCallMediaProcessing) -> Boolpub(all) struct PartFunctionResponse {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
function_response : FunctionResponse
media_processing : PartFunctionResponseMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartFunctionResponseimpl ToJson for PartFunctionResponsefn PartFunctionResponse::from_json(value : Json, path : DecodeContext) -> PartFunctionResponse raise JsonDecodeErrorfn PartFunctionResponse::new(function_response~ : FunctionResponse, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartFunctionResponseMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartFunctionResponsefn from_json(value : Json, path : DecodeContext) -> PartFunctionResponseMediaProcessing raise JsonDecodeErrorfn PartFunctionResponseMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartFunctionResponseMediaProcessing raise JsonDecodeErrorfn PartFunctionResponseMediaProcessing::not_equal(x : PartFunctionResponseMediaProcessing, y : PartFunctionResponseMediaProcessing) -> Boolpub(all) struct PartInlineData {
inline_data : Blob
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
media_processing : PartInlineDataMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartInlineDataimpl ToJson for PartInlineDatafn PartInlineData::from_json(value : Json, path : DecodeContext) -> PartInlineData raise JsonDecodeErrorfn PartInlineData::new(inline_data~ : Blob, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartInlineDataMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartInlineDataimpl FromJson for PartInlineDataMediaProcessingfn from_json(value : Json, path : DecodeContext) -> PartInlineDataMediaProcessing raise JsonDecodeErrorimpl ToJson for PartInlineDataMediaProcessingfn PartInlineDataMediaProcessing::equal(PartInlineDataMediaProcessing, PartInlineDataMediaProcessing) -> Boolfn PartInlineDataMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartInlineDataMediaProcessing raise JsonDecodeErrorfn PartInlineDataMediaProcessing::not_equal(x : PartInlineDataMediaProcessing, y : PartInlineDataMediaProcessing) -> Boolpub(all) struct PartText {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
text : String
media_processing : PartTextMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)fn PartText::new(text~ : String, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartTextMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartTextimpl FromJson for PartTextMediaProcessingimpl ToJson for PartTextMediaProcessingfn PartTextMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartTextMediaProcessing raise JsonDecodeErrorfn PartTextMediaProcessing::not_equal(x : PartTextMediaProcessing, y : PartTextMediaProcessing) -> Boolpub(all) struct PartToolCall {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
tool_call : ToolCall
media_processing : PartToolCallMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartToolCallimpl ToJson for PartToolCallfn PartToolCall::from_json(value : Json, path : DecodeContext) -> PartToolCall raise JsonDecodeErrorfn PartToolCall::new(tool_call~ : ToolCall, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartToolCallMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartToolCallimpl FromJson for PartToolCallMediaProcessingfn from_json(value : Json, path : DecodeContext) -> PartToolCallMediaProcessing raise JsonDecodeErrorimpl ToJson for PartToolCallMediaProcessingfn PartToolCallMediaProcessing::equal(PartToolCallMediaProcessing, PartToolCallMediaProcessing) -> Boolfn PartToolCallMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartToolCallMediaProcessing raise JsonDecodeErrorfn PartToolCallMediaProcessing::not_equal(x : PartToolCallMediaProcessing, y : PartToolCallMediaProcessing) -> Boolpub(all) struct PartToolResponse {
speech_metadata : SpeechMetadata?
thought : Bool?
thought_signature : String?
part_metadata : Map[String, Json]?
media_processing : PartToolResponseMediaProcessing?
video_metadata : VideoMetadata?
audio_transcription : AudioTranscription?
tool_response : ToolResponse
media_resolution : V1mainMediaResolution?
} derive(Eq, Debug)impl FromJson for PartToolResponseimpl ToJson for PartToolResponsefn PartToolResponse::from_json(value : Json, path : DecodeContext) -> PartToolResponse raise JsonDecodeErrorfn PartToolResponse::new(tool_response~ : ToolResponse, speech_metadata? : SpeechMetadata, thought? : Bool, thought_signature? : String, part_metadata? : Map[String, Json], media_processing? : PartToolResponseMediaProcessing, video_metadata? : VideoMetadata, audio_transcription? : AudioTranscription, media_resolution? : V1mainMediaResolution) -> PartToolResponseimpl FromJson for PartToolResponseMediaProcessingfn from_json(value : Json, path : DecodeContext) -> PartToolResponseMediaProcessing raise JsonDecodeErrorimpl ToJson for PartToolResponseMediaProcessingfn PartToolResponseMediaProcessing::from_json(value : Json, path : DecodeContext) -> PartToolResponseMediaProcessing raise JsonDecodeErrorfn PartToolResponseMediaProcessing::not_equal(x : PartToolResponseMediaProcessing, y : PartToolResponseMediaProcessing) -> Boolimpl FromJson for PlaceAnswerSourcesimpl ToJson for PlaceAnswerSourcesfn PlaceAnswerSources::from_json(value : Json, path : DecodeContext) -> PlaceAnswerSources raise JsonDecodeErrorimpl FromJson for PrebuiltVoiceConfigimpl ToJson for PrebuiltVoiceConfigfn PrebuiltVoiceConfig::from_json(value : Json, path : DecodeContext) -> PrebuiltVoiceConfig raise JsonDecodeErrorpub(all) struct PromptFeedback {
safety_ratings : Array[SafetyRating]?
block_reason : PromptFeedbackBlockReason?
} derive(Eq, Debug)impl FromJson for PromptFeedbackimpl ToJson for PromptFeedbackfn PromptFeedback::from_json(value : Json, path : DecodeContext) -> PromptFeedback raise JsonDecodeErrorfn PromptFeedback::new(safety_ratings? : Array[SafetyRating], block_reason? : PromptFeedbackBlockReason) -> PromptFeedbackimpl FromJson for PromptFeedbackBlockReasonimpl ToJson for PromptFeedbackBlockReasonfn PromptFeedbackBlockReason::from_json(value : Json, path : DecodeContext) -> PromptFeedbackBlockReason raise JsonDecodeErrorfn PromptFeedbackBlockReason::not_equal(x : PromptFeedbackBlockReason, y : PromptFeedbackBlockReason) -> Boolpub(all) struct ResponseFormatConfig {
image : ImageResponseFormat?
text : TextResponseFormat?
audio : AudioResponseFormat?
} derive(Eq, Debug)impl FromJson for ResponseFormatConfigimpl ToJson for ResponseFormatConfigfn ResponseFormatConfig::from_json(value : Json, path : DecodeContext) -> ResponseFormatConfig raise JsonDecodeErrorfn ResponseFormatConfig::new(image? : ImageResponseFormat, text? : TextResponseFormat, audio? : AudioResponseFormat) -> ResponseFormatConfigimpl FromJson for RetrievalConfigimpl ToJson for RetrievalConfigfn RetrievalConfig::from_json(value : Json, path : DecodeContext) -> RetrievalConfig raise JsonDecodeErrorimpl FromJson for RetrievalMetadataimpl ToJson for RetrievalMetadatafn RetrievalMetadata::from_json(value : Json, path : DecodeContext) -> RetrievalMetadata raise JsonDecodeErrorpub(all) struct RetrievedContext {
file_search_store : String?
page_number : Int?
uri : String?
media_id : String?
custom_metadata : Array[GroundingChunkCustomMetadata]?
text : String?
title : String?
} derive(Eq, Debug)impl FromJson for RetrievedContextimpl ToJson for RetrievedContextfn RetrievedContext::from_json(value : Json, path : DecodeContext) -> RetrievedContext raise JsonDecodeErrorfn RetrievedContext::new(file_search_store? : String, page_number? : Int, uri? : String, media_id? : String, custom_metadata? : Array[GroundingChunkCustomMetadata], text? : String, title? : String) -> RetrievedContextimpl FromJson for ReviewSnippetimpl ToJson for ReviewSnippetfn ReviewSnippet::from_json(value : Json, path : DecodeContext) -> ReviewSnippet raise JsonDecodeErrorfn ReviewSnippet::new(google_maps_uri? : String, title? : String, review_id? : String) -> ReviewSnippetpub(all) struct SafetyRating {
blocked : Bool?
probability : SafetyRatingProbability?
category : SafetyRatingCategory?
} derive(Eq, Debug)impl FromJson for SafetyRatingimpl ToJson for SafetyRatingfn SafetyRating::from_json(value : Json, path : DecodeContext) -> SafetyRating raise JsonDecodeErrorfn SafetyRating::new(blocked? : Bool, probability? : SafetyRatingProbability, category? : SafetyRatingCategory) -> SafetyRatingpub(all) enum SafetyRatingCategory {
HARMCATEGORYUNSPECIFIED
HARMCATEGORYDEROGATORY
HARMCATEGORYTOXICITY
HARMCATEGORYVIOLENCE
HARMCATEGORYSEXUAL
HARMCATEGORYMEDICAL
HARMCATEGORYDANGEROUS
HARMCATEGORYHARASSMENT
HARMCATEGORYHATESPEECH
HARMCATEGORYSEXUALLYEXPLICIT
HARMCATEGORYDANGEROUSCONTENT
HARMCATEGORYCIVICINTEGRITY
HARMCATEGORYJAILBREAK
Unknown(String)
} derive(Eq, Debug)impl FromJson for SafetyRatingCategoryimpl ToJson for SafetyRatingCategoryfn SafetyRatingCategory::from_json(value : Json, path : DecodeContext) -> SafetyRatingCategory raise JsonDecodeErrorimpl FromJson for SafetyRatingProbabilityimpl ToJson for SafetyRatingProbabilityfn SafetyRatingProbability::from_json(value : Json, path : DecodeContext) -> SafetyRatingProbability raise JsonDecodeErrorfn SafetyRatingProbability::not_equal(x : SafetyRatingProbability, y : SafetyRatingProbability) -> Boolpub(all) struct SafetySetting {
threshold : SafetySettingThreshold?
category : SafetySettingCategory?
} derive(Eq, Debug)impl FromJson for SafetySettingimpl ToJson for SafetySettingfn SafetySetting::from_json(value : Json, path : DecodeContext) -> SafetySetting raise JsonDecodeErrorfn SafetySetting::new(threshold? : SafetySettingThreshold, category? : SafetySettingCategory) -> SafetySettingpub(all) enum SafetySettingCategory {
HARMCATEGORYUNSPECIFIED
HARMCATEGORYDEROGATORY
HARMCATEGORYTOXICITY
HARMCATEGORYVIOLENCE
HARMCATEGORYSEXUAL
HARMCATEGORYMEDICAL
HARMCATEGORYDANGEROUS
HARMCATEGORYHARASSMENT
HARMCATEGORYHATESPEECH
HARMCATEGORYSEXUALLYEXPLICIT
HARMCATEGORYDANGEROUSCONTENT
HARMCATEGORYCIVICINTEGRITY
HARMCATEGORYJAILBREAK
Custom(String)
} derive(Eq, Debug)impl FromJson for SafetySettingCategoryimpl ToJson for SafetySettingCategoryfn SafetySettingCategory::from_json(value : Json, path : DecodeContext) -> SafetySettingCategory raise JsonDecodeErrorimpl FromJson for SafetySettingThresholdimpl ToJson for SafetySettingThresholdfn SafetySettingThreshold::from_json(value : Json, path : DecodeContext) -> SafetySettingThreshold raise JsonDecodeErrorfn SafetySettingThreshold::not_equal(x : SafetySettingThreshold, y : SafetySettingThreshold) -> Boolpub(all) struct Schema {
max_items : Int64?
maximum : Double?
title : String?
default : Json?
min_items : Int64?
enum_ : Array[String]?
max_length : Int64?
max_properties : Int64?
required : Array[String]?
pattern : String?
min_properties : Int64?
description : String?
min_length : Int64?
properties : Map[String, Schema]?
type_ : SchemaType?
nullable : Bool?
minimum : Double?
any_of : Array[Schema]?
items : Schema?
format : String?
property_ordering : Array[String]?
example : Json?
} derive(Eq, Debug)fn Schema::new(max_items? : Int64, maximum? : Double, title? : String, default? : Json, min_items? : Int64, enum_? : Array[String], max_length? : Int64, max_properties? : Int64, required? : Array[String], pattern? : String, min_properties? : Int64, description? : String, min_length? : Int64, properties? : Map[String, Schema], type_? : SchemaType, nullable? : Bool, minimum? : Double, any_of? : Array[Schema], items? : Schema, format? : String, property_ordering? : Array[String], example? : Json) -> Schemaimpl FromJson for SchemaTypeimpl ToJson for SchemaTypeimpl FromJson for SearchEntryPointimpl ToJson for SearchEntryPointfn SearchEntryPoint::from_json(value : Json, path : DecodeContext) -> SearchEntryPoint raise JsonDecodeErrorimpl FromJson for SearchTypesimpl ToJson for SearchTypesimpl FromJson for SemanticRetrieverChunkimpl ToJson for SemanticRetrieverChunkfn SemanticRetrieverChunk::from_json(value : Json, path : DecodeContext) -> SemanticRetrieverChunk raise JsonDecodeErrorfn SemanticRetrieverChunk::not_equal(x : SemanticRetrieverChunk, y : SemanticRetrieverChunk) -> Boolpub(all) struct SpeakerVoiceConfig {
speaker : String?
voice_config : VoiceConfig?
} derive(Eq, Debug)impl FromJson for SpeakerVoiceConfigimpl ToJson for SpeakerVoiceConfigfn SpeakerVoiceConfig::from_json(value : Json, path : DecodeContext) -> SpeakerVoiceConfig raise JsonDecodeErrorpub(all) struct SpeechConfig {
language_code : String?
voice_config : VoiceConfig?
text_normalization : SpeechConfigTextNormalization?
multi_speaker_voice_config : MultiSpeakerVoiceConfig?
} derive(Eq, Debug)impl FromJson for SpeechConfigimpl ToJson for SpeechConfigfn SpeechConfig::from_json(value : Json, path : DecodeContext) -> SpeechConfig raise JsonDecodeErrorfn SpeechConfig::new(language_code? : String, voice_config? : VoiceConfig, text_normalization? : SpeechConfigTextNormalization, multi_speaker_voice_config? : MultiSpeakerVoiceConfig) -> SpeechConfigimpl FromJson for SpeechConfigTextNormalizationfn from_json(value : Json, path : DecodeContext) -> SpeechConfigTextNormalization raise JsonDecodeErrorimpl ToJson for SpeechConfigTextNormalizationfn SpeechConfigTextNormalization::equal(SpeechConfigTextNormalization, SpeechConfigTextNormalization) -> Boolfn SpeechConfigTextNormalization::from_json(value : Json, path : DecodeContext) -> SpeechConfigTextNormalization raise JsonDecodeErrorfn SpeechConfigTextNormalization::not_equal(x : SpeechConfigTextNormalization, y : SpeechConfigTextNormalization) -> Boolimpl FromJson for SpeechMetadataimpl ToJson for SpeechMetadatafn SpeechMetadata::from_json(value : Json, path : DecodeContext) -> SpeechMetadata raise JsonDecodeErrorpub(all) struct SpreadsheetMetadata {
visible_cells : String?
content_layers : Array[SpreadsheetMetadataContentLayersItem]?
sheet_index : Int?
} derive(Eq, Debug)impl FromJson for SpreadsheetMetadataimpl ToJson for SpreadsheetMetadatafn SpreadsheetMetadata::from_json(value : Json, path : DecodeContext) -> SpreadsheetMetadata raise JsonDecodeErrorfn SpreadsheetMetadata::new(visible_cells? : String, content_layers? : Array[SpreadsheetMetadataContentLayersItem], sheet_index? : Int) -> SpreadsheetMetadatafn from_json(value : Json, path : DecodeContext) -> SpreadsheetMetadataContentLayersItem raise JsonDecodeErrorfn SpreadsheetMetadataContentLayersItem::from_json(value : Json, path : DecodeContext) -> SpreadsheetMetadataContentLayersItem raise JsonDecodeErrorfn SpreadsheetMetadataContentLayersItem::not_equal(x : SpreadsheetMetadataContentLayersItem, y : SpreadsheetMetadataContentLayersItem) -> Boolfn SpreadsheetMetadataContentLayersItem::to_json(self : SpreadsheetMetadataContentLayersItem) -> Jsonimpl FromJson for StreamableHttpTransportimpl ToJson for StreamableHttpTransportfn StreamableHttpTransport::from_json(value : Json, path : DecodeContext) -> StreamableHttpTransport raise JsonDecodeErrorfn StreamableHttpTransport::new(headers? : Map[String, String], url? : String, terminate_on_close? : Bool, sse_read_timeout? : String, timeout? : String) -> StreamableHttpTransportfn StreamableHttpTransport::not_equal(x : StreamableHttpTransport, y : StreamableHttpTransport) -> Boolpub(all) struct TextResponseFormat {
mime_type : TextResponseFormatMimeType?
schema : Json?
} derive(Eq, Debug)impl FromJson for TextResponseFormatimpl ToJson for TextResponseFormatfn TextResponseFormat::from_json(value : Json, path : DecodeContext) -> TextResponseFormat raise JsonDecodeErrorfn TextResponseFormat::new(mime_type? : TextResponseFormatMimeType, schema? : Json) -> TextResponseFormatimpl FromJson for TextResponseFormatMimeTypefn from_json(value : Json, path : DecodeContext) -> TextResponseFormatMimeType raise JsonDecodeErrorimpl ToJson for TextResponseFormatMimeTypefn TextResponseFormatMimeType::equal(TextResponseFormatMimeType, TextResponseFormatMimeType) -> Boolfn TextResponseFormatMimeType::from_json(value : Json, path : DecodeContext) -> TextResponseFormatMimeType raise JsonDecodeErrorfn TextResponseFormatMimeType::not_equal(x : TextResponseFormatMimeType, y : TextResponseFormatMimeType) -> Boolpub(all) struct ThinkingConfig {
thinking_budget : Int?
thinking_level : ThinkingConfigThinkingLevel?
include_thoughts : Bool?
} derive(Eq, Debug)impl FromJson for ThinkingConfigimpl ToJson for ThinkingConfigfn ThinkingConfig::from_json(value : Json, path : DecodeContext) -> ThinkingConfig raise JsonDecodeErrorfn ThinkingConfig::new(thinking_budget? : Int, thinking_level? : ThinkingConfigThinkingLevel, include_thoughts? : Bool) -> ThinkingConfigimpl FromJson for ThinkingConfigThinkingLevelfn from_json(value : Json, path : DecodeContext) -> ThinkingConfigThinkingLevel raise JsonDecodeErrorimpl ToJson for ThinkingConfigThinkingLevelfn ThinkingConfigThinkingLevel::equal(ThinkingConfigThinkingLevel, ThinkingConfigThinkingLevel) -> Boolfn ThinkingConfigThinkingLevel::from_json(value : Json, path : DecodeContext) -> ThinkingConfigThinkingLevel raise JsonDecodeErrorfn ThinkingConfigThinkingLevel::not_equal(x : ThinkingConfigThinkingLevel, y : ThinkingConfigThinkingLevel) -> Boolpub(all) struct Tool {
url_context : Json?
google_maps : GoogleMaps?
mcp_servers : Array[McpServer]?
google_search_retrieval : GoogleSearchRetrieval?
file_search : FileSearch?
google_search : GoogleSearch?
computer_use : ComputerUse?
code_execution : Json?
function_declarations : Array[FunctionDeclaration]?
} derive(Eq, Debug)fn Tool::new(url_context? : Json, google_maps? : GoogleMaps, mcp_servers? : Array[McpServer], google_search_retrieval? : GoogleSearchRetrieval, file_search? : FileSearch, google_search? : GoogleSearch, computer_use? : ComputerUse, code_execution? : Json, function_declarations? : Array[FunctionDeclaration]) -> Toolpub(all) struct ToolCall {
tool_name : String?
tool_type : ToolCallToolType?
id : String?
args : Map[String, Json]?
} derive(Eq, Debug)fn ToolCall::new(tool_name? : String, tool_type? : ToolCallToolType, id? : String, args? : Map[String, Json]) -> ToolCallimpl FromJson for ToolCallToolTypeimpl ToJson for ToolCallToolTypefn ToolCallToolType::from_json(value : Json, path : DecodeContext) -> ToolCallToolType raise JsonDecodeErrorpub(all) struct ToolConfig {
function_calling_config : FunctionCallingConfig?
retrieval_config : RetrievalConfig?
include_server_side_tool_invocations : Bool?
} derive(Eq, Debug)impl FromJson for ToolConfigimpl ToJson for ToolConfigfn ToolConfig::new(function_calling_config? : FunctionCallingConfig, retrieval_config? : RetrievalConfig, include_server_side_tool_invocations? : Bool) -> ToolConfigpub(all) struct ToolResponse {
id : String?
response : Map[String, Json]?
tool_type : ToolResponseToolType?
} derive(Eq, Debug)impl FromJson for ToolResponseimpl ToJson for ToolResponsefn ToolResponse::from_json(value : Json, path : DecodeContext) -> ToolResponse raise JsonDecodeErrorfn ToolResponse::new(id? : String, response? : Map[String, Json], tool_type? : ToolResponseToolType) -> ToolResponseimpl FromJson for ToolResponseToolTypeimpl ToJson for ToolResponseToolTypefn ToolResponseToolType::from_json(value : Json, path : DecodeContext) -> ToolResponseToolType raise JsonDecodeErrorimpl FromJson for TopCandidatesimpl ToJson for TopCandidatesfn TopCandidates::from_json(value : Json, path : DecodeContext) -> TopCandidates raise JsonDecodeErrorimpl FromJson for TranslationConfigimpl ToJson for TranslationConfigfn TranslationConfig::from_json(value : Json, path : DecodeContext) -> TranslationConfig raise JsonDecodeErrorfn TranslationConfig::new(target_language_code? : String, echo_target_language? : Bool) -> TranslationConfigimpl FromJson for UrlContextMetadataimpl ToJson for UrlContextMetadatafn UrlContextMetadata::from_json(value : Json, path : DecodeContext) -> UrlContextMetadata raise JsonDecodeErrorpub(all) struct UrlMetadata {
retrieved_url : String?
url_retrieval_status : UrlMetadataUrlRetrievalStatus?
} derive(Eq, Debug)impl FromJson for UrlMetadataimpl ToJson for UrlMetadatafn UrlMetadata::new(retrieved_url? : String, url_retrieval_status? : UrlMetadataUrlRetrievalStatus) -> UrlMetadataimpl FromJson for UrlMetadataUrlRetrievalStatusfn from_json(value : Json, path : DecodeContext) -> UrlMetadataUrlRetrievalStatus raise JsonDecodeErrorimpl ToJson for UrlMetadataUrlRetrievalStatusfn UrlMetadataUrlRetrievalStatus::equal(UrlMetadataUrlRetrievalStatus, UrlMetadataUrlRetrievalStatus) -> Boolfn UrlMetadataUrlRetrievalStatus::from_json(value : Json, path : DecodeContext) -> UrlMetadataUrlRetrievalStatus raise JsonDecodeErrorfn UrlMetadataUrlRetrievalStatus::not_equal(x : UrlMetadataUrlRetrievalStatus, y : UrlMetadataUrlRetrievalStatus) -> Boolpub(all) struct UsageMetadata {
candidates_tokens_details : Array[ModalityTokenCount]?
thoughts_token_count : Int?
total_token_count : Int?
tool_use_prompt_token_count : Int?
prompt_tokens_details : Array[ModalityTokenCount]?
tool_use_prompt_tokens_details : Array[ModalityTokenCount]?
prompt_token_count : Int?
candidates_token_count : Int?
cached_content_token_count : Int?
cache_tokens_details : Array[ModalityTokenCount]?
service_tier : UsageMetadataServiceTier?
} derive(Eq, Debug)impl FromJson for UsageMetadataimpl ToJson for UsageMetadatafn UsageMetadata::from_json(value : Json, path : DecodeContext) -> UsageMetadata raise JsonDecodeErrorfn UsageMetadata::new(candidates_tokens_details? : Array[ModalityTokenCount], thoughts_token_count? : Int, total_token_count? : Int, tool_use_prompt_token_count? : Int, prompt_tokens_details? : Array[ModalityTokenCount], tool_use_prompt_tokens_details? : Array[ModalityTokenCount], prompt_token_count? : Int, candidates_token_count? : Int, cached_content_token_count? : Int, cache_tokens_details? : Array[ModalityTokenCount], service_tier? : UsageMetadataServiceTier) -> UsageMetadataimpl FromJson for UsageMetadataServiceTierimpl ToJson for UsageMetadataServiceTierfn UsageMetadataServiceTier::from_json(value : Json, path : DecodeContext) -> UsageMetadataServiceTier raise JsonDecodeErrorfn UsageMetadataServiceTier::not_equal(x : UsageMetadataServiceTier, y : UsageMetadataServiceTier) -> Boolimpl FromJson for V1mainMediaResolutionimpl ToJson for V1mainMediaResolutionfn V1mainMediaResolution::from_json(value : Json, path : DecodeContext) -> V1mainMediaResolution raise JsonDecodeErrorimpl FromJson for V1mainMediaResolutionLevelfn from_json(value : Json, path : DecodeContext) -> V1mainMediaResolutionLevel raise JsonDecodeErrorimpl ToJson for V1mainMediaResolutionLevelfn V1mainMediaResolutionLevel::equal(V1mainMediaResolutionLevel, V1mainMediaResolutionLevel) -> Boolfn V1mainMediaResolutionLevel::from_json(value : Json, path : DecodeContext) -> V1mainMediaResolutionLevel raise JsonDecodeErrorfn V1mainMediaResolutionLevel::not_equal(x : V1mainMediaResolutionLevel, y : V1mainMediaResolutionLevel) -> Boolimpl FromJson for VideoFileMetadataimpl ToJson for VideoFileMetadatafn VideoFileMetadata::from_json(value : Json, path : DecodeContext) -> VideoFileMetadata raise JsonDecodeErrorpub(all) struct VideoMetadata {
content_layers : Array[VideoMetadataContentLayersItem]?
end_offset : String?
start_offset : String?
fps : Double?
} derive(Eq, Debug)impl FromJson for VideoMetadataimpl ToJson for VideoMetadatafn VideoMetadata::from_json(value : Json, path : DecodeContext) -> VideoMetadata raise JsonDecodeErrorfn VideoMetadata::new(content_layers? : Array[VideoMetadataContentLayersItem], end_offset? : String, start_offset? : String, fps? : Double) -> VideoMetadataimpl FromJson for VideoMetadataContentLayersItemfn from_json(value : Json, path : DecodeContext) -> VideoMetadataContentLayersItem raise JsonDecodeErrorimpl ToJson for VideoMetadataContentLayersItemfn VideoMetadataContentLayersItem::from_json(value : Json, path : DecodeContext) -> VideoMetadataContentLayersItem raise JsonDecodeErrorfn VideoMetadataContentLayersItem::not_equal(x : VideoMetadataContentLayersItem, y : VideoMetadataContentLayersItem) -> Boolpub(all) struct VoiceConfig {
voice : String?
prebuilt_voice_config : PrebuiltVoiceConfig?
} derive(Eq, Debug)impl FromJson for VoiceConfigimpl ToJson for VoiceConfigfn cached_contents_create_decode(head : ResponseHead, body : Bytes) -> Result[CachedContent, ResponseFailure]fn cached_contents_get_decode(head : ResponseHead, body : Bytes) -> Result[CachedContent, ResponseFailure]fn cached_contents_list_decode(head : ResponseHead, body : Bytes) -> Result[ListCachedContentsResponse, ResponseFailure]fn cached_contents_list_decode_json(value : Json) -> ListCachedContentsResponse raise JsonDecodeErrorfn cached_contents_patch_decode(head : ResponseHead, body : Bytes) -> Result[CachedContent, ResponseFailure]fn cached_contents_patch_request(name : String, body : CachedContent, update_mask? : String) -> Request raise ValidationErrorfn files_list_decode(head : ResponseHead, body : Bytes) -> Result[ListFilesResponse, ResponseFailure]fn media_upload_decode(head : ResponseHead, body : Bytes) -> Result[CreateFileResponse, ResponseFailure]fn models_batch_embed_contents_decode(head : ResponseHead, body : Bytes) -> Result[BatchEmbedContentsResponse, ResponseFailure]fn models_batch_embed_contents_decode_json(value : Json) -> BatchEmbedContentsResponse raise JsonDecodeErrorfn models_batch_embed_contents_request(model : String, body : BatchEmbedContentsRequest) -> Request raise ValidationErrorfn models_count_tokens_decode(head : ResponseHead, body : Bytes) -> Result[CountTokensResponse, ResponseFailure]fn models_count_tokens_request(model : String, body : CountTokensRequest) -> Request raise ValidationErrorfn models_embed_content_decode(head : ResponseHead, body : Bytes) -> Result[EmbedContentResponse, ResponseFailure]fn models_embed_content_request(model : String, body : EmbedContentRequest) -> Request raise ValidationErrorfn models_generate_content_decode(head : ResponseHead, body : Bytes) -> Result[GenerateContentResponse, ResponseFailure]fn models_generate_content_decode_json(value : Json) -> GenerateContentResponse raise JsonDecodeErrorfn models_generate_content_request(model : String, body : GenerateContentRequest) -> Request raise ValidationErrorfn models_list_decode(head : ResponseHead, body : Bytes) -> Result[ListModelsResponse, ResponseFailure]fn models_stream_generate_content_decode(head : ResponseHead, body : Bytes) -> Result[GenerateContentResponse, ResponseFailure]fn models_stream_generate_content_decode_json(value : Json) -> GenerateContentResponse raise JsonDecodeErrorfn models_stream_generate_content_request(model : String, body : GenerateContentRequest) -> Request raise ValidationErrorInstall
Download zipThin Gemini API client for MoonBit built on gaato/mttp_core: generation (buffered and streaming), embeddings, token counting, files and context caching.