Commit graph

24 commits

Author SHA1 Message Date
Google APIs
d90d23fa13 feat: upgrade protobuf from v25.7 to v31.0
PiperOrigin-RevId: 881595129
2026-03-10 13:26:56 -07:00
Google APIs
bc7e3baa28 feat: add support for GoogleMaps and FileSearch tools
feat: add support for RetrievalConfig

PiperOrigin-RevId: 846118142
2025-12-18 00:25:06 -08:00
Google APIs
fd84be8a8b feat: add support for FunctionResponsePart
feat: add support for raw media bytes for function response
feat: add Computer Use tool type
feat: add support for image generation features
feat: add support for additional reasons to stop image generation
feat: add URL_RETRIEVAL_STATUS_UNSAFE and URL_RETRIEVAL_STATUS_PAYWALL statuses for url retrieval
feat: add log_probability_sum
fix!: replaced GenerateVideoResponse by PredictLongRunningGeneratedVideoResponse field

PiperOrigin-RevId: 819821787
2025-10-15 10:43:31 -07:00
Google APIs
41f615cc6b feat: add support for thought_signature
feat!: add support for video_metadata
feat: add time_range_filter to GoogleSearch tool type
feat: add support for function response scheduling in the conversation
feat: add url_context to GoogleSearch tool type
feat: add MultiSpeakerVoiceConfig to speech config
feat: add UNEXPECTED_TOOL_CALL to the Candidate.FinishReason enum
feat: add AudioTranscriptionConfig
feat: add a flag whether the model supports thinking

PiperOrigin-RevId: 799564554
2025-08-26 07:58:53 -07:00
Google APIs
bab01b38ef fix: upgrade gRPC service registration func
An update to Go gRPC Protobuf generation will change service registration function signatures to use an interface instead of a concrete type in generated .pb.go service files. This change should affect very few client library users. See release notes advisories in https://github.com/googleapis/google-cloud-go/pull/11025.

PiperOrigin-RevId: 759724486
2025-05-16 13:00:01 -07:00
Google APIs
c76b740723 feat: add support for live API (https://github.com/googleapis/go-genai/issues/275)
feat: add support for Veo: PredictLongRunning and generated/downloadable files
feat: add minimum, maximum, any_of, property_ordering, default and null type to Schema
feat: add support for ModalityTokenCounts in UsageMetadata responses
feat: add CODE_RETRIEVAL_QUERY embedding task type
feat: add language_code to speech config
feat: add ThinkingConfig, MediaResolution, and seed to GenerationConfig

PiperOrigin-RevId: 752332723
2025-04-28 09:18:38 -07:00
Google APIs
7c6f112ae1 build: add deps in build
PiperOrigin-RevId: 750357322
2025-04-22 16:00:01 -07:00
Google APIs
fdc32b8f3d build: centralize build imports for all languages
PiperOrigin-RevId: 745681086
2025-04-09 12:05:11 -07:00
Google APIs
9415ba048a chore: update copyright year for auto-generated protos
PiperOrigin-RevId: 732130682
2025-02-28 07:26:00 -08:00
Google APIs
130b113520 feat: Add GoogleSearch tool type
feat: Add return type `Schema response` to function declarations
feat: Add id to FunctionCall and FunctionResponse
feat: Add civic_integrity toggle to generation_config
feat: Add response_modalities to generation_config
feat: Add voice_config to generation_config
docs: Update safety filter list to include civic_integrity
feat: Add image_safety block_reason + finish_reason

PiperOrigin-RevId: 713080033
2025-01-07 16:31:31 -08:00
Google APIs
c70bd1ef0b feat: Add GenerateContentRespoinse.model_version
feat: Add GroundingMetadata.web_search_queries
docs: Small updates

PiperOrigin-RevId: 698047489
2024-11-19 09:35:28 -08:00
Google APIs
979f71cfae feat: Add GoogleSearchRetrieval tool and candidate.grounding_metadata
feat: Add Schema.min_items
feat: Add GenerationConfig.{presence_penalty, frequency_penalty, logprobs, response_logprobs, logprobs} and Candidate.{avg_logprobs, logprobs_result}
feat: Add PredictionService (for Imagen)
feat: Add HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY
feat: Add HarmBlockThreshold.OFF
feat: Add TunedModels.reader_project_numbers
docs: Small fixes
docs: Tag HarmCategories by the model family they're used on.

PiperOrigin-RevId: 676982731
2024-09-20 14:59:47 -07:00
Google APIs
5157b5f455 docs: Many small fixes
feat: Add new PromptFeedback and FinishReason entries for https://github.com/google-gemini/generative-ai-python/issues/476

PiperOrigin-RevId: 663936518
2024-08-16 17:57:47 -07:00
Google APIs
cb060cbb75 feat: Add code execution
feat: Add max_temperature
docs: Minor fixes

PiperOrigin-RevId: 646960455
2024-06-26 08:41:30 -07:00
Google APIs
804ed3efe6 feat: Add content caching
feat: Add cached_content_token_count to generative_service's UsageMetadata
feat: Add cached_content_token_count to CountTokensResponse
docs: Small fixes

PiperOrigin-RevId: 642001790
2024-06-10 13:20:53 -07:00
Google APIs
298a53b529 feat: Add video metadata to files API
feat: Update timeouts for generate content
docs: Minor updates

PiperOrigin-RevId: 634425922
2024-05-16 09:21:40 -07:00
Google APIs
79c1b132c6 feat: Add FileState to File
feat: Add response_schema to GenerationConfig
feat: Add UsageMetadata to GenerateContentResponse
feat: Add GenerateContentRequest to CountTokensRequest
docs: Various small fixes

PiperOrigin-RevId: 630516587
2024-05-03 15:40:19 -07:00
Google APIs
33ae362163 feat: Add question_answering and fact_verification task types for AQA
feat: Add output dimensionality for embeddings
feat: Add response_mime_type to GenerationConfig
docs: A bunch of small fixes

PiperOrigin-RevId: 623546647
2024-04-10 11:01:38 -07:00
Google APIs
81cd9fe84c feat: Add system instructions
feat: Add tool_config
feat: Add file upload service
feat: Add file_data to part options
docs: A comment for field `candidate_count` in message `.google.ai.generativelanguage.v1beta.GenerationConfig` is changed

PiperOrigin-RevId: 620400522
2024-03-29 19:44:37 -07:00
Google APIs
074ea98e53 fix!: make learning rate a one-of
docs: A few small updates
feat: Add `learning_rate_multiplier` to tuning `Hyperparameters`

PiperOrigin-RevId: 616144364
2024-03-15 08:53:56 -07:00
Google APIs
d99f6f5e15 fix!: Fix content.proto's Schema - type should be required
feat: Update GenAI libraries to include input_safety_feedback
docs: Minor docs updates.

PiperOrigin-RevId: 600837712
2024-01-23 10:41:37 -08:00
Google APIs
41a0bf9ee4 docs: Fixed minor documentation typos for field function_declarations in message .google.ai.generativelanguage.v1beta.Tool
PiperOrigin-RevId: 599264691
2024-01-17 13:06:55 -08:00
Google APIs
6c84684003 build: update package name for node for generative AI
PiperOrigin-RevId: 596651623
2024-01-08 11:20:18 -08:00
Google APIs
f5b6a3ba4f feat: Add v1beta, adds GenerativeService and RetrievalService
feat: Add v1, contains only GenerativeService, nothing else

PiperOrigin-RevId: 589233134
2023-12-08 13:52:15 -08:00