API взаимодействия Gemini — это экспериментальный API, позволяющий разработчикам создавать приложения генеративного ИИ с использованием моделей Gemini. Gemini — наша самая мощная модель, разработанная с нуля для мультимодального взаимодействия. Она способна обобщать и беспрепятственно понимать, обрабатывать и комбинировать различные типы информации, включая язык, изображения, аудио, видео и код. Вы можете использовать API Gemini для таких задач, как рассуждения на основе текста и изображений, генерация контента, диалоговые агенты, системы суммирования и классификации и многое другое.
Создать веб-перехватчик
Создает новый веб-перехватчик.
Текст запроса
Тело запроса содержит данные следующей структуры:
Необязательно. Имя веб-перехватчика, указанное пользователем.
Обязательно. URI, на который будут отправляться события веб-перехватчика.
Обязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Ответ
В случае успеха тело ответа будет содержать данные следующей структуры:
Необязательно. Имя веб-перехватчика, указанное пользователем.
Обязательно. URI, на который будут отправляться события веб-перехватчика.
Обязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Только вывод. Отметка времени создания веб-перехватчика.
Только вывод. Отметка времени последнего обновления веб-перехватчика.
signing_secrets SigningSecret (необязательно)
Только вывод. Секретные данные для подписи, связанные с этим веб-хуком.
Поля
Только вывод. Сокращенная версия секретного ключа подписи.
Только для вывода. Срок действия секретного ключа подписи.
Только вывод. Состояние веб-хука.
Возможные значения:
-
enabled -
disabled -
disabled_due_to_failed_deliveries
Только для вывода. Новый секретный ключ для веб-перехватчика. Заполняется только при создании.
Только вывод. Идентификатор веб-перехватчика.
Пример
Пример ответа
{ "name": "string", "uri": "string", "subscribed_events": [ "string" ], "create_time": "string", "update_time": "string", "signing_secrets": [ { "truncated_secret": "string", "expire_time": "string" } ], "state": "enabled", "new_signing_secret": "string", "id": "string" }
ListWebhooks
Отображает список всех веб-хуков.
Путь / Параметры запроса
Необязательный параметр. Максимальное количество возвращаемых веб-хуков. Сервис может вернуть меньше этого значения. Если параметр не указан, будет возвращено не более 50 веб-хуков. Максимальное значение — 1000.
Необязательный параметр. Токен страницы, полученный из предыдущего вызова `ListWebhooks`. Укажите его, чтобы получить следующую страницу.
Ответ
В случае успеха тело ответа будет содержать данные следующей структуры:
Веб-хуки.
Токен, который можно отправить в качестве `page_token` для получения следующей страницы. Если это поле опущено, последующих страниц не будет.
Пример
Пример ответа
{ "webhooks": [ { "name": "string", "uri": "string", "subscribed_events": [ "string" ], "create_time": "string", "update_time": "string", "signing_secrets": [ { "truncated_secret": "string", "expire_time": "string" } ], "state": "enabled", "new_signing_secret": "string", "id": "string" } ], "next_page_token": "string" }
GetWebhook
Получает конкретный веб-хук.
Путь / Параметры запроса
Обязательно. Идентификатор веб-перехватчика для получения данных.
Ответ
В случае успеха тело ответа будет содержать данные следующей структуры:
Необязательно. Имя веб-перехватчика, указанное пользователем.
Обязательно. URI, на который будут отправляться события веб-перехватчика.
Обязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Только вывод. Отметка времени создания веб-перехватчика.
Только вывод. Отметка времени последнего обновления веб-перехватчика.
signing_secrets SigningSecret (необязательно)
Только вывод. Секретные данные для подписи, связанные с этим веб-хуком.
Поля
Только вывод. Сокращенная версия секретного ключа подписи.
Только для вывода. Срок действия секретного ключа подписи.
Только вывод. Состояние веб-хука.
Возможные значения:
-
enabled -
disabled -
disabled_due_to_failed_deliveries
Только для вывода. Новый секретный ключ для веб-перехватчика. Заполняется только при создании.
Только вывод. Идентификатор веб-перехватчика.
Пример
Пример ответа
{ "name": "string", "uri": "string", "subscribed_events": [ "string" ], "create_time": "string", "update_time": "string", "signing_secrets": [ { "truncated_secret": "string", "expire_time": "string" } ], "state": "enabled", "new_signing_secret": "string", "id": "string" }
UpdateWebhook
Обновляет существующий веб-перехватчик.
Путь / Параметры запроса
Обязательно. Идентификатор веб-перехватчика для обновления.
Необязательный параметр. Список полей для обновления.
Текст запроса
Тело запроса содержит данные следующей структуры:
Необязательно. Имя веб-перехватчика, указанное пользователем.
Необязательный параметр. URI, на который будут отправляться события веб-перехватчика.
Необязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Необязательно. Состояние веб-хука.
Возможные значения:
-
enabled -
disabled -
disabled_due_to_failed_deliveries
Ответ
В случае успеха тело ответа будет содержать данные следующей структуры:
Необязательно. Имя веб-перехватчика, указанное пользователем.
Обязательно. URI, на который будут отправляться события веб-перехватчика.
Обязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Только вывод. Отметка времени создания веб-перехватчика.
Только вывод. Отметка времени последнего обновления веб-перехватчика.
signing_secrets SigningSecret (необязательно)
Только вывод. Секретные данные для подписи, связанные с этим веб-хуком.
Поля
Только вывод. Сокращенная версия секретного ключа подписи.
Только для вывода. Срок действия секретного ключа подписи.
Только вывод. Состояние веб-хука.
Возможные значения:
-
enabled -
disabled -
disabled_due_to_failed_deliveries
Только для вывода. Новый секретный ключ для веб-перехватчика. Заполняется только при создании.
Только вывод. Идентификатор веб-перехватчика.
Пример
Пример ответа
{ "name": "string", "uri": "string", "subscribed_events": [ "string" ], "create_time": "string", "update_time": "string", "signing_secrets": [ { "truncated_secret": "string", "expire_time": "string" } ], "state": "enabled", "new_signing_secret": "string", "id": "string" }
DeleteWebhook
Удаляет веб-перехватчик.
Путь / Параметры запроса
Обязательно. Идентификатор веб-хука для удаления. Формат: `{webhook_id}`
Ответ
В случае успеха ответ будет пустым.
Пример
RotateSigningSecret
Генерирует новый секретный ключ для подписи веб-перехватчика.
Путь / Параметры запроса
Обязательно. Идентификатор веб-перехватчика, для которого необходимо сгенерировать секретный ключ для подписи. Формат: `{webhook_id}`
Текст запроса
Тело запроса содержит данные следующей структуры:
Необязательно. Порядок отзыва ранее подписанных секретных ключей.
Возможные значения:
-
revoke_previous_secrets_after_h24 -
revoke_previous_secrets_immediately
Ответ
В случае успеха тело ответа будет содержать данные следующей структуры:
Только вывод. Вновь сгенерированный секретный ключ для подписи.
Пример
Пример ответа
{ "secret": "string" }
PingWebhook
Отправляет событие ping на веб-перехватчик.
Путь / Параметры запроса
Обязательно. Идентификатор веб-хука для пинга. Формат: `{webhook_id}`
Текст запроса
Тело запроса содержит данные следующей структуры:
Ответ
В случае успеха ответ будет пустым.
Пример
Ресурсы
Вебхук
Ресурс веб-перехватчика.
Поля
Необязательно. Имя веб-перехватчика, указанное пользователем.
Обязательно. URI, на который будут отправляться события веб-перехватчика.
Обязательно. События, на которые подписан веб-хук. Доступные события: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
Только вывод. Отметка времени создания веб-перехватчика.
Только вывод. Отметка времени последнего обновления веб-перехватчика.
signing_secrets SigningSecret (необязательно)
Только вывод. Секретные данные для подписи, связанные с этим веб-хуком.
Поля
Только вывод. Сокращенная версия секретного ключа подписи.
Только для вывода. Срок действия секретного ключа подписи.
Только вывод. Состояние веб-хука.
Возможные значения:
-
enabled -
disabled -
disabled_due_to_failed_deliveries
Только для вывода. Новый секретный ключ для веб-перехватчика. Заполняется только при создании.
Только вывод. Идентификатор веб-перехватчика.
Модели данных
InteractionSseEvent
Возможные типы
Полиморфный дискриминатор: event_type
InteractionCreatedEvent
Описание отсутствует.
Всегда устанавливайте значение "interaction.created" .
Взаимодействие (обязательно )
Описание отсутствует.
Поля
модель ModelOption (необязательно)
Название модели, использованной для генерации взаимодействия.
Возможные значения:
-
gemini-2.5-computer-use-preview-10-2025Модель агентных возможностей, разработанная для прямого взаимодействия через интерфейс, позволяющая Gemini воспринимать цифровую среду и перемещаться в ней.
-
gemini-2.5-flashНаша первая гибридная модель рассуждений, поддерживающая контекстное окно в 1 миллион токенов и имеющая бюджеты мышления.
-
gemini-2.5-flash-imageНаша собственная модель генерации изображений, оптимизированная для скорости, гибкости и контекстного понимания. Стоимость ввода и вывода текста такая же, как у 2,5-дюймовой версии Flash.
-
gemini-2.5-flash-liteНаша самая компактная и экономичная модель, предназначенная для масштабного использования.
-
gemini-2.5-flash-lite-preview-09-2025Новейшая модель на базе Gemini 2.5 Flash lite, оптимизированная для экономичности, высокой производительности и высокого качества.
-
gemini-2.5-flash-native-audio-preview-12-2025Наши собственные аудиомодели оптимизированы для более высокого качества звука с улучшенным темпом, естественностью голоса, детализацией и передачей настроения.
-
gemini-2.5-flash-preview-09-2025Новейшая модель, основанная на версии 2.5 Flash. Версия 2.5 Flash Preview лучше всего подходит для крупномасштабной обработки, задач с низкой задержкой и большим объемом данных, требующих аналитического мышления, а также для сценариев использования агентных вычислений.
-
gemini-2.5-flash-preview-ttsНаша модель преобразования текста в речь 2.5 Flash оптимизирована для мощной, управляемой генерации речи с низкой задержкой.
-
gemini-2.5-proНаша передовая многоцелевая модель, превосходно справляющаяся с задачами программирования и сложным логическим мышлением.
-
gemini-2.5-pro-preview-ttsНаша аудиомодель преобразования текста в речь 2.5 Pro оптимизирована для мощного генерирования речи с низкой задержкой, что обеспечивает более естественный результат и упрощает управление голосовыми подсказками.
-
gemini-3-flash-previewНаша самая интеллектуальная модель, созданная для скорости, сочетает в себе передовые методы разведки с превосходными возможностями поиска и посадки на землю.
-
gemini-3-pro-image-previewСовременная модель генерации и редактирования изображений.
-
gemini-3-pro-previewНаша самая интеллектуальная модель с передовыми методами рассуждения и многомодальным пониманием, а также мощными возможностями агентного и эмоциональных кодирований.
-
gemini-3.1-pro-previewНаша новейшая, передовая модель логического мышления с беспрецедентной глубиной и детализацией, а также мощными возможностями многомодального понимания и кодирования.
-
gemini-3.1-flash-image-previewПрофессиональный уровень визуального интеллекта с эффективностью, сравнимой со скоростью Flash, и возможностями генерации, основанной на реальных данных.
-
gemini-3.1-flash-lite-previewНаша наиболее экономичная модель, оптимизированная для выполнения больших объемов агентских задач, перевода и простой обработки данных.
-
gemini-3.1-flash-tts-previewGemini 3.1 Flash TTS: Мощная система генерации речи с низкой задержкой. Наслаждайтесь естественным звучанием, управляемыми подсказками и новыми выразительными аудиотегами для точного управления озвучиванием.
-
lyria-3-clip-previewНаша модель генерации музыки с низкой задержкой оптимизирована для высококачественных аудиоклипов и точного контроля ритма.
-
lyria-3-pro-previewНаша передовая генеративная модель, способная обрабатывать целые композиции и обладающая глубоким пониманием композиции, оптимизирована для точного структурного контроля и сложных переходов между различными музыкальными стилями.
агент AgentOption (необязательно)
Имя агента, использованного для генерации взаимодействия.
Возможные значения:
-
deep-research-pro-preview-12-2025Агент по глубоким исследованиям компании Gemini
-
deep-research-preview-04-2026Агент по глубоким исследованиям компании Gemini
-
deep-research-max-preview-04-2026Gemini Deep Research Max Agent
Обязательно. Только для вывода. Уникальный идентификатор завершения взаимодействия.
Обязательный параметр. Только вывод. Статус взаимодействия.
Возможные значения:
-
in_progress -
requires_action -
completed -
failed -
cancelled -
incomplete
Обязательно. Только для вывода. Время создания ответа в формате ISO 8601 (ГГГГ-ММ-ДДЧч:мм:ссЗ).
Обязательно. Только для вывода. Время последнего обновления ответа в формате ISO 8601 (ГГГГ-ММ-ДДТЧ:мм:ссЗ).
Только вывод. Роль взаимодействия.
Системная инструкция для взаимодействия.
Инструменты (необязательно )
Список объявлений инструментов, которые модель может вызывать во время взаимодействия.
Возможные типы
Полиморфный дискриминатор: type
Функция
Инструмент, который может быть использован моделью.
Описание отсутствует.
Всегда устанавливайте значение "function" .
Название функции.
Описание функции.
JSON-схема для параметров функции.
Выполнение кода
Инструмент, который может использоваться моделью для выполнения кода.
Описание отсутствует.
Всегда устанавливайте значение "code_execution" .
UrlContext
Инструмент, который может использоваться моделью для получения контекста URL-адреса.
Описание отсутствует.
Всегда устанавливайте значение "url_context" .
Использование компьютера
Инструмент, который модель может использовать для взаимодействия с компьютером.
Описание отсутствует.
Всегда устанавливайте значение "computer_use" .
Рабочая среда.
Возможные значения:
-
browser
Список предопределенных функций, исключенных из вызова модели.
McpServer
MCPServer — это сервер, который может быть вызван моделью для выполнения действий.
Описание отсутствует.
Всегда устанавливайте значение "mcp_server" .
Имя MCPServer.
Полный URL-адрес конечной точки MCPServer. Пример: "https://api.example.com/mcp"
Необязательно: поля для заголовков аутентификации, тайм-аутов и т. д., если необходимо.
allowed_tools AllowedTools (необязательно)
Разрешенные инструменты.
Поля
режим ToolChoiceType (необязательно)
Способ выбора инструмента.
Возможные значения:
-
auto -
any -
none -
validated
Названия разрешенных инструментов.
GoogleПоиск
Инструмент, который модель может использовать для поиска в Google.
Описание отсутствует.
Всегда устанавливайте значение "google_search" .
Типы поиска, которые необходимо включить.
Возможные значения:
-
web_search -
image_search -
enterprise_web_search
Поиск файлов
Инструмент, который может использоваться моделью для поиска файлов.
Описание отсутствует.
Всегда устанавливайте значение "file_search" .
Названия хранилищ файлов для поиска.
Количество фрагментов семантического поиска, которые необходимо извлечь.
Фильтр метаданных, применяемый к документам и фрагментам, полученным в результате семантического поиска.
Google Карты
Инструмент, который модель может использовать для вызова Google Maps.
Описание отсутствует.
Всегда устанавливайте значение "google_maps" .
Следует ли возвращать токен контекста виджета в результате вызова инструмента в ответе.
Широта местоположения пользователя.
Долгота местоположения пользователя.
Извлечение
Инструмент, который может использоваться моделью для извлечения файлов.
Описание отсутствует.
Всегда устанавливайте значение "retrieval" .
Типы извлечения файлов, которые необходимо включить.
Возможные значения:
-
vertex_ai_search
vertex_ai_search_config VertexAISearchConfig (необязательно)
Используется для указания конфигурации VertexAISearch.
Поля
Необязательный параметр. Используется для указания поисковой системы Vertex AI.
Необязательный параметр. Используется для указания хранилищ данных Vertex AI Search.
Использование (необязательно )
Только вывод. Статистика использования токенов в запросе на взаимодействие.
Поля
Количество токенов в подсказке (контексте).
input_tokens_by_modality ModalityTokens (необязательно)
Анализ использования входных токенов в зависимости от модальности ввода.
Поля
модальность ResponseModality (необязательно)
Способ отображения количества токенов.
Возможные значения:
-
text -
image -
audio -
video -
document
Количество токенов для данного режима.
Количество токенов в кэшированной части запроса (кэшированное содержимое).
cached_tokens_by_modality ModalityTokens (необязательно)
Анализ использования кэшированных токенов по способам доступа.
Поля
модальность ResponseModality (необязательно)
Способ отображения количества токенов.
Возможные значения:
-
text -
image -
audio -
video -
document
Количество токенов для данного режима.
Общее количество токенов во всех сгенерированных ответах.
output_tokens_by_modality ModalityTokens (необязательно)
Анализ использования выходных токенов по видам модальностей.
Поля
модальность ResponseModality (необязательно)
Способ отображения количества токенов.
Возможные значения:
-
text -
image -
audio -
video -
document
Количество токенов для данного режима.
Количество токенов, присутствующих в подсказках использования инструмента.
tool_use_tokens_by_modality ModalityTokens (необязательно)
Анализ использования токенов инструментов в зависимости от модальности.
Поля
модальность ResponseModality (необязательно)
Способ отображения количества токенов.
Возможные значения:
-
text -
image -
audio -
video -
document
Количество токенов для данного режима.
Количество токенов мыслей для моделей мышления.
Общее количество токенов для запроса на взаимодействие (запрос + ответы + другие внутренние токены).
grounding_tool_count GroundingToolCount (необязательно)
Количество инструментов для заземления.
Поля
Тип заземляющего инструмента, связанный с подсчетом.
Возможные значения:
-
google_search -
google_maps -
retrieval
Количество заземляющих инструментов подсчитывается.
response_modalities ResponseModality (необязательно)
Требуемые форматы ответа (ТЕКСТ, ИЗОБРАЖЕНИЕ, АУДИО).
Возможные значения:
-
text -
image -
audio -
video -
document
MIME-тип ответа. Это необходимо, если задан параметр response_format.
Идентификатор предыдущего взаимодействия, если таковое имелось.
service_tier ServiceTier (необязательно)
Уровень обслуживания для данного взаимодействия.
Возможные значения:
-
flex -
standard -
priority
webhook_config WebhookConfig (необязательно)
Необязательно. Настройка веб-перехватчика для получения уведомлений по завершении взаимодействия.
Поля
Необязательно. Если задано, эти URI веб-перехватчиков будут использоваться для событий веб-перехватчиков вместо зарегистрированных веб-перехватчиков.
Необязательно. Метаданные пользователя, которые будут возвращаться веб-хукам при каждом срабатывании события.
Шаги Шаг (необязательно)
Только выходные данные. Этапы взаимодействия.
Возможные типы
Полиморфный дискриминатор: type
Шаг ввода пользователя
Ввод данных осуществляется пользователем.
Описание отсутствует.
Всегда устанавливайте значение "user_input" .
Содержание ( необязательно )
Описание отсутствует.
Возможные типы
Полиморфный дискриминатор: type
Текстовое содержимое
Блок текстового содержимого.
Описание отсутствует.
Всегда устанавливайте значение "text" .
Обязательно. Текстовое содержимое.
Аннотации (необязательно )
Информация об источниках для контента, сгенерированного моделью.
Возможные типы
Полиморфный дискриминатор: type
URLCitation
Аннотация URL-адреса.
Описание отсутствует.
Всегда устанавливайте значение "url_citation" .
URL.
Заголовок URL-адреса.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
FileCitation
Аннотация к файлу.
Описание отсутствует.
Всегда устанавливайте значение "file_citation" .
URI файла.
Название файла.
Источник указан для части текста.
Пользователь предоставил метаданные о полученном контексте.
Номер страницы цитируемого документа, если таковой имеется.
В случае цитирования изображений, пожалуйста, укажите идентификатор медиафайла (Media ID), если таковой имеется.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
PlaceCitation
Аннотация к географическому местоположению.
Описание отсутствует.
Всегда устанавливайте значение "place_citation" .
Идентификатор места в формате `places/{place_id}`.
Название места.
URI-ссылка на это место.
review_snippets ReviewSnippet (необязательно)
Фрагменты отзывов, используемые для генерации ответов об особенностях того или иного места в Google Maps.
Поля
Заголовок рецензии.
Ссылка, соответствующая отзыву пользователя на Google Maps.
Идентификатор фрагмента отзыва.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
ImageContent
Блок с графическим содержимым.
Описание отсутствует.
Всегда устанавливайте значение "image" .
Содержание изображения.
URI изображения.
MIME-тип изображения.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
разрешение MediaResolution (необязательно)
Разрешение средств массовой информации.
Возможные значения:
-
low -
medium -
high -
ultra_high
Аудиоконтент
Блок аудиоконтента.
Описание отсутствует.
Всегда устанавливайте значение "audio" .
Аудиоконтент.
URI аудиофайла.
MIME-тип аудиофайла.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
Количество аудиоканалов.
Частота дискретизации аудиосигнала.
Содержимое документа
Блок содержимого документа.
Описание отсутствует.
Всегда устанавливайте значение "document" .
Содержание документа.
URI документа.
MIME-тип документа.
Возможные значения:
-
application/pdf
Видеоконтент
Блок видеоконтента.
Описание отсутствует.
Всегда устанавливайте значение "video" .
Видеоконтент.
URI видео.
Тип MIME видео.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
разрешение MediaResolution (необязательно)
Разрешение средств массовой информации.
Возможные значения:
-
low -
medium -
high -
ultra_high
ModelOutputStep
Результаты, сгенерированные моделью.
Описание отсутствует.
Всегда устанавливайте значение "model_output" .
Содержание ( необязательно )
Описание отсутствует.
Возможные типы
Полиморфный дискриминатор: type
Текстовое содержимое
Блок текстового содержимого.
Описание отсутствует.
Всегда устанавливайте значение "text" .
Обязательно. Текстовое содержимое.
Аннотации (необязательно )
Информация об источниках для контента, сгенерированного моделью.
Возможные типы
Полиморфный дискриминатор: type
URLCitation
Аннотация URL-адреса.
Описание отсутствует.
Всегда устанавливайте значение "url_citation" .
URL.
Заголовок URL-адреса.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
FileCitation
Аннотация к файлу.
Описание отсутствует.
Всегда устанавливайте значение "file_citation" .
URI файла.
Название файла.
Источник указан для части текста.
Пользователь предоставил метаданные о полученном контексте.
Номер страницы цитируемого документа, если таковой имеется.
В случае цитирования изображений, пожалуйста, укажите идентификатор медиафайла (Media ID), если таковой имеется.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
PlaceCitation
Аннотация к географическому местоположению.
Описание отсутствует.
Всегда устанавливайте значение "place_citation" .
Идентификатор места в формате `places/{place_id}`.
Название места.
URI-ссылка на это место.
review_snippets ReviewSnippet (необязательно)
Фрагменты отзывов, используемые для генерации ответов об особенностях того или иного места в Google Maps.
Поля
Заголовок рецензии.
Ссылка, соответствующая отзыву пользователя на Google Maps.
Идентификатор фрагмента отзыва.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
ImageContent
Блок с графическим содержимым.
Описание отсутствует.
Всегда устанавливайте значение "image" .
Содержание изображения.
URI изображения.
MIME-тип изображения.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
разрешение MediaResolution (необязательно)
Разрешение средств массовой информации.
Возможные значения:
-
low -
medium -
high -
ultra_high
Аудиоконтент
Блок аудиоконтента.
Описание отсутствует.
Всегда устанавливайте значение "audio" .
Аудиоконтент.
URI аудиофайла.
MIME-тип аудиофайла.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
Количество аудиоканалов.
Частота дискретизации аудиосигнала.
Содержимое документа
Блок содержимого документа.
Описание отсутствует.
Всегда устанавливайте значение "document" .
Содержание документа.
URI документа.
MIME-тип документа.
Возможные значения:
-
application/pdf
Видеоконтент
Блок видеоконтента.
Описание отсутствует.
Всегда устанавливайте значение "video" .
Видеоконтент.
URI видео.
Тип MIME видео.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
разрешение MediaResolution (необязательно)
Разрешение средств массовой информации.
Возможные значения:
-
low -
medium -
high -
ultra_high
ThoughtStep
Шаг для размышления.
Описание отсутствует.
Всегда устанавливать значение "thought" .
Хэш подписи для проверки данных на стороне бэкэнда.
Краткое содержание Мысли Краткое содержание Содержание (необязательно)
Краткое изложение мысли.
Возможные типы
Полиморфный дискриминатор: type
Текстовое содержимое
Блок текстового содержимого.
Описание отсутствует.
Всегда устанавливайте значение "text" .
Обязательно. Текстовое содержимое.
Аннотации (необязательно )
Информация об источниках для контента, сгенерированного моделью.
Возможные типы
Полиморфный дискриминатор: type
URLCitation
Аннотация URL-адреса.
Описание отсутствует.
Всегда устанавливайте значение "url_citation" .
URL.
Заголовок URL-адреса.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
FileCitation
Аннотация к файлу.
Описание отсутствует.
Всегда устанавливайте значение "file_citation" .
URI файла.
Название файла.
Источник указан для части текста.
Пользователь предоставил метаданные о полученном контексте.
Номер страницы цитируемого документа, если таковой имеется.
В случае цитирования изображений, пожалуйста, укажите идентификатор медиафайла (Media ID), если таковой имеется.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
PlaceCitation
Аннотация к географическому местоположению.
Описание отсутствует.
Всегда устанавливайте значение "place_citation" .
Идентификатор места в формате `places/{place_id}`.
Название места.
URI-ссылка на это место.
review_snippets ReviewSnippet (необязательно)
Фрагменты отзывов, используемые для генерации ответов об особенностях того или иного места в Google Maps.
Поля
Заголовок рецензии.
Ссылка, соответствующая отзыву пользователя на Google Maps.
Идентификатор фрагмента отзыва.
Начало сегмента ответа, который относится к данному источнику. Индекс указывает начало сегмента, измеряемое в байтах.
Конец выделенного сегмента, без учета каких-либо ограничений.
ImageContent
Блок с графическим содержимым.
Описание отсутствует.
Всегда устанавливайте значение "image" .
Содержание изображения.
URI изображения.
MIME-тип изображения.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
разрешение MediaResolution (необязательно)
Разрешение средств массовой информации.
Возможные значения:
-
low -
medium -
high -
ultra_high
FunctionCallStep
Шаг вызова функции инструмента.
Описание отсутствует.
Всегда устанавливайте значение "function_call" .
Обязательно. Название вызываемого инструмента.
Обязательный параметр. Аргументы, передаваемые функции.
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
CodeExecutionCallStep
Шаг вызова выполнения кода.
Описание отсутствует.
Всегда устанавливайте значение "code_execution_call" .
аргументы CodeExecutionCallStepArguments (обязательно)
Обязательный параметр. Аргументы, передаваемые для выполнения кода.
Поля
Язык программирования кода.
Возможные значения:
-
python
Код, который необходимо выполнить.
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
UrlContextCallStep
Шаг вызова контекста URL.
Описание отсутствует.
Всегда устанавливайте значение "url_context_call" .
arguments UrlContextCallStepArguments (required)
Обязательный параметр. Аргументы, передаваемые в контекст URL.
Поля
URL-адреса для загрузки.
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
McpServerToolCallStep
Шаг вызова инструмента MCPServer.
Описание отсутствует.
Всегда устанавливайте значение "mcp_server_tool_call" .
Обязательно. Название вызванного инструмента.
Обязательно. Имя используемого MCP-сервера.
Обязательный параметр. JSON-объект с аргументами для функции.
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
GoogleSearchCallStep
Шаг вызова поиска Google.
Описание отсутствует.
Всегда устанавливайте значение "google_search_call" .
arguments GoogleSearchCallStepArguments (required)
Обязательный параметр. Аргументы, которые будут переданы в поиск Google.
Поля
Поисковые запросы в интернете для последующего поиска.
Тип включенной привязки поиска.
Возможные значения:
-
web_search -
image_search -
enterprise_web_search
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
FileSearchCallStep
Шаг вызова поиска файла.
Описание отсутствует.
Всегда устанавливайте значение "file_search_call" .
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
GoogleКартыCallStep
Шаг вызова Google Maps.
Описание отсутствует.
Всегда устанавливайте значение "google_maps_call" .
аргументы GoogleMapsCallStepArguments (необязательно)
Аргументы, передаваемые инструменту Google Maps.
Поля
Запросы, подлежащие выполнению.
Обязательно. Уникальный идентификатор для данного вызова инструмента.
Хэш подписи для проверки данных на стороне бэкэнда.
FunctionResultStep
Результат вызова функции инструмента.
Описание отсутствует.
Всегда устанавливайте значение "function_result" .
Название вызванного инструмента.
Вызвал ли вызов инструмента ошибку?
Обязательно. Идентификатор, соответствующий идентификатору из блока вызова функции.
Хэш подписи для проверки данных на стороне бэкэнда.
Результат вызова инструмента.
CodeExecutionResultStep
Шаг, определяющий результат выполнения кода.
Описание отсутствует.
Всегда устанавливайте значение "code_execution_result" .
Обязательно. Результат выполнения кода.
Выполнился ли код с ошибкой?
Обязательно. Идентификатор, соответствующий идентификатору из блока вызова функции.
Хэш подписи для проверки данных на стороне бэкэнда.
UrlContextResultStep
Шаг получения результата контекста URL.
Описание отсутствует.
Всегда устанавливайте значение "url_context_result" .
result UrlContextResultItem (required)
Required. The results of the URL context.
Поля
The URL that was fetched.
The status of the URL retrieval.
Возможные значения:
-
success -
error -
paywall -
unsafe
Whether the URL context resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleSearchResultStep
Google Search result step.
Описание отсутствует.
Always set to "google_search_result" .
result GoogleSearchResultItem (required)
Required. The results of the Google Search.
Поля
Web content snippet that can be embedded in a web page or an app webview.
Whether the Google Search resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
McpServerToolResultStep
MCPServer tool result step.
Описание отсутствует.
Always set to "mcp_server_tool_result" .
Name of the tool which is called for this specific tool call.
The name of the used MCP server.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The output from the MCP server call. Can be simple text or rich content.
FileSearchResultStep
File Search result step.
Описание отсутствует.
Always set to "file_search_result" .
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleMapsResultStep
Google Maps result step.
Описание отсутствует.
Always set to "google_maps_result" .
result GoogleMapsResultItem (required)
Описание отсутствует.
Поля
places GoogleMapsResultPlaces (optional)
Описание отсутствует.
Поля
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
review_snippets ReviewSnippet (optional)
Описание отсутствует.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Описание отсутствует.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The input for the interaction.
Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
agent_config object (optional)
Configuration parameters for the agent interaction.
Possible Types
Polymorphic discriminator: type
DynamicAgentConfig
Configuration for dynamic agents.
Описание отсутствует.
Always set to "dynamic" .
DeepResearchAgentConfig
Configuration for the Deep Research agent.
Описание отсутствует.
Always set to "deep-research" .
thinking_summaries ThinkingSummaries (optional)
Whether to include thought summaries in the response.
Возможные значения:
-
auto -
none
Whether to include visualizations in the response.
Возможные значения:
-
off -
auto
Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep Research agent will provide a research plan in its response. The agent will then proceed only if the user confirms the plan in the next turn.
The event_id token to be used to resume the interaction stream, from this event.
InteractionCompletedEvent
Описание отсутствует.
Always set to "interaction.completed" .
interaction Interaction (required)
Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output.
Поля
model ModelOption (optional)
The name of the `Model` used for generating the interaction.
Возможные значения:
-
gemini-2.5-computer-use-preview-10-2025An agentic capability model designed for direct interface interaction, allowing Gemini to perceive and navigate digital environments.
-
gemini-2.5-flashНаша первая гибридная модель рассуждений, поддерживающая контекстное окно в 1 миллион токенов и имеющая бюджеты мышления.
-
gemini-2.5-flash-imageOur native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.
-
gemini-2.5-flash-liteНаша самая компактная и экономичная модель, предназначенная для масштабного использования.
-
gemini-2.5-flash-lite-preview-09-2025The latest model based on Gemini 2.5 Flash lite optimized for cost-efficiency, high throughput and high quality.
-
gemini-2.5-flash-native-audio-preview-12-2025Our native audio models optimized for higher quality audio outputs with better pacing, voice naturalness, verbosity, and mood.
-
gemini-2.5-flash-preview-09-2025The latest model based on the 2.5 Flash model. 2.5 Flash Preview is best for large scale processing, low-latency, high volume tasks that require thinking, and agentic use cases.
-
gemini-2.5-flash-preview-ttsOur 2.5 Flash text-to-speech model optimized for powerful, low-latency controllable speech generation.
-
gemini-2.5-proOur state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.
-
gemini-2.5-pro-preview-ttsНаша аудиомодель преобразования текста в речь 2.5 Pro оптимизирована для мощного генерирования речи с низкой задержкой, что обеспечивает более естественный результат и упрощает управление голосовыми подсказками.
-
gemini-3-flash-previewНаша самая интеллектуальная модель, созданная для скорости, сочетает в себе передовые методы разведки с превосходными возможностями поиска и посадки на землю.
-
gemini-3-pro-image-previewСовременная модель генерации и редактирования изображений.
-
gemini-3-pro-previewOur most intelligent model with SOTA reasoning and multimodal understanding, and powerful agentic and vibe coding capabilities.
-
gemini-3.1-pro-previewOur latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.
-
gemini-3.1-flash-image-previewПрофессиональный уровень визуального интеллекта с эффективностью, сравнимой со скоростью Flash, и возможностями генерации, основанной на реальных данных.
-
gemini-3.1-flash-lite-previewНаша наиболее экономичная модель, оптимизированная для выполнения больших объемов агентских задач, перевода и простой обработки данных.
-
gemini-3.1-flash-tts-previewGemini 3.1 Flash TTS: Мощная система генерации речи с низкой задержкой. Наслаждайтесь естественным звучанием, управляемыми подсказками и новыми выразительными аудиотегами для точного управления озвучиванием.
-
lyria-3-clip-previewНаша модель генерации музыки с низкой задержкой оптимизирована для высококачественных аудиоклипов и точного контроля ритма.
-
lyria-3-pro-previewНаша передовая генеративная модель, способная обрабатывать целые композиции и обладающая глубоким пониманием композиции, оптимизирована для точного структурного контроля и сложных переходов между различными музыкальными стилями.
agent AgentOption (optional)
The name of the `Agent` used for generating the interaction.
Возможные значения:
-
deep-research-pro-preview-12-2025Gemini Deep Research Agent
-
deep-research-preview-04-2026Gemini Deep Research Agent
-
deep-research-max-preview-04-2026Gemini Deep Research Max Agent
Required. Output only. A unique identifier for the interaction completion.
Required. Output only. The status of the interaction.
Возможные значения:
-
in_progress -
requires_action -
completed -
failed -
cancelled -
incomplete
Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
Required. Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
Output only. The role of the interaction.
System instruction for the interaction.
tools Tool (optional)
A list of tool declarations the model may call during interaction.
Possible Types
Polymorphic discriminator: type
Функция
A tool that can be used by the model.
Описание отсутствует.
Always set to "function" .
Название функции.
A description of the function.
The JSON Schema for the function's parameters.
Выполнение кода
A tool that can be used by the model to execute code.
Описание отсутствует.
Always set to "code_execution" .
UrlContext
A tool that can be used by the model to fetch URL context.
Описание отсутствует.
Always set to "url_context" .
Использование компьютера
A tool that can be used by the model to interact with the computer.
Описание отсутствует.
Always set to "computer_use" .
The environment being operated.
Возможные значения:
-
browser
The list of predefined functions that are excluded from the model call.
McpServer
A MCPServer is a server that can be called by the model to perform actions.
Описание отсутствует.
Always set to "mcp_server" .
The name of the MCPServer.
The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp"
Optional: Fields for authentication headers, timeouts, etc., if needed.
allowed_tools AllowedTools (optional)
The allowed tools.
Поля
mode ToolChoiceType (optional)
The mode of the tool choice.
Возможные значения:
-
auto -
any -
none -
validated
The names of the allowed tools.
GoogleSearch
A tool that can be used by the model to search Google.
Описание отсутствует.
Always set to "google_search" .
The types of search grounding to enable.
Возможные значения:
-
web_search -
image_search -
enterprise_web_search
Поиск файлов
A tool that can be used by the model to search files.
Описание отсутствует.
Always set to "file_search" .
The file search store names to search.
The number of semantic retrieval chunks to retrieve.
Metadata filter to apply to the semantic retrieval documents and chunks.
Google Карты
A tool that can be used by the model to call Google Maps.
Описание отсутствует.
Always set to "google_maps" .
Whether to return a widget context token in the tool call result of the response.
The latitude of the user's location.
The longitude of the user's location.
Извлечение
A tool that can be used by the model to retrieve files.
Описание отсутствует.
Always set to "retrieval" .
The types of file retrieval to enable.
Возможные значения:
-
vertex_ai_search
vertex_ai_search_config VertexAISearchConfig (optional)
Used to specify configuration for VertexAISearch.
Поля
Optional. Used to specify Vertex AI Search engine.
Optional. Used to specify Vertex AI Search datastores.
usage Usage (optional)
Output only. Statistics on the interaction request's token usage.
Поля
Number of tokens in the prompt (context).
input_tokens_by_modality ModalityTokens (optional)
A breakdown of input token usage by modality.
Поля
modality ResponseModality (optional)
The modality associated with the token count.
Возможные значения:
-
text -
image -
audio -
video -
document
Number of tokens for the modality.
Number of tokens in the cached part of the prompt (the cached content).
cached_tokens_by_modality ModalityTokens (optional)
A breakdown of cached token usage by modality.
Поля
modality ResponseModality (optional)
The modality associated with the token count.
Возможные значения:
-
text -
image -
audio -
video -
document
Number of tokens for the modality.
Total number of tokens across all the generated responses.
output_tokens_by_modality ModalityTokens (optional)
A breakdown of output token usage by modality.
Поля
modality ResponseModality (optional)
The modality associated with the token count.
Возможные значения:
-
text -
image -
audio -
video -
document
Number of tokens for the modality.
Number of tokens present in tool-use prompt(s).
tool_use_tokens_by_modality ModalityTokens (optional)
A breakdown of tool-use token usage by modality.
Поля
modality ResponseModality (optional)
The modality associated with the token count.
Возможные значения:
-
text -
image -
audio -
video -
document
Number of tokens for the modality.
Number of tokens of thoughts for thinking models.
Total token count for the interaction request (prompt + responses + other internal tokens).
grounding_tool_count GroundingToolCount (optional)
Grounding tool count.
Поля
The grounding tool type associated with the count.
Возможные значения:
-
google_search -
google_maps -
retrieval
The number of grounding tool counts.
response_modalities ResponseModality (optional)
The requested modalities of the response (TEXT, IMAGE, AUDIO).
Возможные значения:
-
text -
image -
audio -
video -
document
The mime type of the response. This is required if response_format is set.
The ID of the previous interaction, if any.
service_tier ServiceTier (optional)
The service tier for the interaction.
Возможные значения:
-
flex -
standard -
priority
webhook_config WebhookConfig (optional)
Optional. Webhook configuration for receiving notifications when the interaction completes.
Поля
Optional. If set, these webhook URIs will be used for webhook events instead of the registered webhooks.
Optional. The user metadata that will be returned on each event emission to the webhooks.
steps Step (optional)
Output only. The steps that make up the interaction.
Possible Types
Polymorphic discriminator: type
UserInputStep
Input provided by the user.
Описание отсутствует.
Always set to "user_input" .
content Content (optional)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
AudioContent
An audio content block.
Описание отсутствует.
Always set to "audio" .
The audio content.
The URI of the audio.
The mime type of the audio.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
The number of audio channels.
The sample rate of the audio.
DocumentContent
A document content block.
Описание отсутствует.
Always set to "document" .
The document content.
The URI of the document.
The mime type of the document.
Возможные значения:
-
application/pdf
VideoContent
A video content block.
Описание отсутствует.
Always set to "video" .
The video content.
The URI of the video.
The mime type of the video.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ModelOutputStep
Output generated by the model.
Описание отсутствует.
Always set to "model_output" .
content Content (optional)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
AudioContent
An audio content block.
Описание отсутствует.
Always set to "audio" .
The audio content.
The URI of the audio.
The mime type of the audio.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
The number of audio channels.
The sample rate of the audio.
DocumentContent
A document content block.
Описание отсутствует.
Always set to "document" .
The document content.
The URI of the document.
The mime type of the document.
Возможные значения:
-
application/pdf
VideoContent
A video content block.
Описание отсутствует.
Always set to "video" .
The video content.
The URI of the video.
The mime type of the video.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ThoughtStep
A thought step.
Описание отсутствует.
Always set to "thought" .
A signature hash for backend validation.
summary ThoughtSummaryContent (optional)
A summary of the thought.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
FunctionCallStep
A function tool call step.
Описание отсутствует.
Always set to "function_call" .
Required. The name of the tool to call.
Required. The arguments to pass to the function.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
CodeExecutionCallStep
Code execution call step.
Описание отсутствует.
Always set to "code_execution_call" .
arguments CodeExecutionCallStepArguments (required)
Required. The arguments to pass to the code execution.
Поля
Programming language of the `code`.
Возможные значения:
-
python
Код, который необходимо выполнить.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
UrlContextCallStep
URL context call step.
Описание отсутствует.
Always set to "url_context_call" .
arguments UrlContextCallStepArguments (required)
Required. The arguments to pass to the URL context.
Поля
The URLs to fetch.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
McpServerToolCallStep
MCPServer tool call step.
Описание отсутствует.
Always set to "mcp_server_tool_call" .
Required. The name of the tool which was called.
Required. The name of the used MCP server.
Required. The JSON object of arguments for the function.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
GoogleSearchCallStep
Google Search call step.
Описание отсутствует.
Always set to "google_search_call" .
arguments GoogleSearchCallStepArguments (required)
Required. The arguments to pass to Google Search.
Поля
Поисковые запросы в интернете для последующего поиска.
The type of search grounding enabled.
Возможные значения:
-
web_search -
image_search -
enterprise_web_search
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
FileSearchCallStep
File Search call step.
Описание отсутствует.
Always set to "file_search_call" .
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
GoogleMapsCallStep
Google Maps call step.
Описание отсутствует.
Always set to "google_maps_call" .
arguments GoogleMapsCallStepArguments (optional)
The arguments to pass to the Google Maps tool.
Поля
The queries to be executed.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
FunctionResultStep
Result of a function tool call.
Описание отсутствует.
Always set to "function_result" .
The name of the tool that was called.
Whether the tool call resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The result of the tool call.
CodeExecutionResultStep
Code execution result step.
Описание отсутствует.
Always set to "code_execution_result" .
Required. The output of the code execution.
Whether the code execution resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
UrlContextResultStep
URL context result step.
Описание отсутствует.
Always set to "url_context_result" .
result UrlContextResultItem (required)
Required. The results of the URL context.
Поля
The URL that was fetched.
The status of the URL retrieval.
Возможные значения:
-
success -
error -
paywall -
unsafe
Whether the URL context resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleSearchResultStep
Google Search result step.
Описание отсутствует.
Always set to "google_search_result" .
result GoogleSearchResultItem (required)
Required. The results of the Google Search.
Поля
Web content snippet that can be embedded in a web page or an app webview.
Whether the Google Search resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
McpServerToolResultStep
MCPServer tool result step.
Описание отсутствует.
Always set to "mcp_server_tool_result" .
Name of the tool which is called for this specific tool call.
The name of the used MCP server.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The output from the MCP server call. Can be simple text or rich content.
FileSearchResultStep
File Search result step.
Описание отсутствует.
Always set to "file_search_result" .
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleMapsResultStep
Google Maps result step.
Описание отсутствует.
Always set to "google_maps_result" .
result GoogleMapsResultItem (required)
Описание отсутствует.
Поля
places GoogleMapsResultPlaces (optional)
Описание отсутствует.
Поля
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
review_snippets ReviewSnippet (optional)
Описание отсутствует.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Описание отсутствует.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The input for the interaction.
Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
agent_config object (optional)
Configuration parameters for the agent interaction.
Possible Types
Polymorphic discriminator: type
DynamicAgentConfig
Configuration for dynamic agents.
Описание отсутствует.
Always set to "dynamic" .
DeepResearchAgentConfig
Configuration for the Deep Research agent.
Описание отсутствует.
Always set to "deep-research" .
thinking_summaries ThinkingSummaries (optional)
Whether to include thought summaries in the response.
Возможные значения:
-
auto -
none
Whether to include visualizations in the response.
Возможные значения:
-
off -
auto
Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep Research agent will provide a research plan in its response. The agent will then proceed only if the user confirms the plan in the next turn.
The event_id token to be used to resume the interaction stream, from this event.
InteractionStatusUpdate
Описание отсутствует.
Always set to "interaction.status_update" .
Описание отсутствует.
Описание отсутствует.
Возможные значения:
-
in_progress -
requires_action -
completed -
failed -
cancelled -
incomplete
The event_id token to be used to resume the interaction stream, from this event.
ErrorEvent
Описание отсутствует.
Always set to "error" .
error Error (optional)
Описание отсутствует.
Поля
A URI that identifies the error type.
A human-readable error message.
The event_id token to be used to resume the interaction stream, from this event.
StepStart
Описание отсутствует.
Always set to "step.start" .
Описание отсутствует.
step Step (required)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
UserInputStep
Input provided by the user.
Описание отсутствует.
Always set to "user_input" .
content Content (optional)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
AudioContent
An audio content block.
Описание отсутствует.
Always set to "audio" .
The audio content.
The URI of the audio.
The mime type of the audio.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
The number of audio channels.
The sample rate of the audio.
DocumentContent
A document content block.
Описание отсутствует.
Always set to "document" .
The document content.
The URI of the document.
The mime type of the document.
Возможные значения:
-
application/pdf
VideoContent
A video content block.
Описание отсутствует.
Always set to "video" .
The video content.
The URI of the video.
The mime type of the video.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ModelOutputStep
Output generated by the model.
Описание отсутствует.
Always set to "model_output" .
content Content (optional)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
AudioContent
An audio content block.
Описание отсутствует.
Always set to "audio" .
The audio content.
The URI of the audio.
The mime type of the audio.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
The number of audio channels.
The sample rate of the audio.
DocumentContent
A document content block.
Описание отсутствует.
Always set to "document" .
The document content.
The URI of the document.
The mime type of the document.
Возможные значения:
-
application/pdf
VideoContent
A video content block.
Описание отсутствует.
Always set to "video" .
The video content.
The URI of the video.
The mime type of the video.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ThoughtStep
A thought step.
Описание отсутствует.
Always set to "thought" .
A signature hash for backend validation.
summary ThoughtSummaryContent (optional)
A summary of the thought.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
FunctionCallStep
A function tool call step.
Описание отсутствует.
Always set to "function_call" .
Required. The name of the tool to call.
Required. The arguments to pass to the function.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
CodeExecutionCallStep
Code execution call step.
Описание отсутствует.
Always set to "code_execution_call" .
arguments CodeExecutionCallStepArguments (required)
Required. The arguments to pass to the code execution.
Поля
Programming language of the `code`.
Возможные значения:
-
python
Код, который необходимо выполнить.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
UrlContextCallStep
URL context call step.
Описание отсутствует.
Always set to "url_context_call" .
arguments UrlContextCallStepArguments (required)
Required. The arguments to pass to the URL context.
Поля
The URLs to fetch.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
McpServerToolCallStep
MCPServer tool call step.
Описание отсутствует.
Always set to "mcp_server_tool_call" .
Required. The name of the tool which was called.
Required. The name of the used MCP server.
Required. The JSON object of arguments for the function.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
GoogleSearchCallStep
Google Search call step.
Описание отсутствует.
Always set to "google_search_call" .
arguments GoogleSearchCallStepArguments (required)
Required. The arguments to pass to Google Search.
Поля
Поисковые запросы в интернете для последующего поиска.
The type of search grounding enabled.
Возможные значения:
-
web_search -
image_search -
enterprise_web_search
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
FileSearchCallStep
File Search call step.
Описание отсутствует.
Always set to "file_search_call" .
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
GoogleMapsCallStep
Google Maps call step.
Описание отсутствует.
Always set to "google_maps_call" .
arguments GoogleMapsCallStepArguments (optional)
The arguments to pass to the Google Maps tool.
Поля
The queries to be executed.
Required. A unique ID for this specific tool call.
A signature hash for backend validation.
FunctionResultStep
Result of a function tool call.
Описание отсутствует.
Always set to "function_result" .
The name of the tool that was called.
Whether the tool call resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The result of the tool call.
CodeExecutionResultStep
Code execution result step.
Описание отсутствует.
Always set to "code_execution_result" .
Required. The output of the code execution.
Whether the code execution resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
UrlContextResultStep
URL context result step.
Описание отсутствует.
Always set to "url_context_result" .
result UrlContextResultItem (required)
Required. The results of the URL context.
Поля
The URL that was fetched.
The status of the URL retrieval.
Возможные значения:
-
success -
error -
paywall -
unsafe
Whether the URL context resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleSearchResultStep
Google Search result step.
Описание отсутствует.
Always set to "google_search_result" .
result GoogleSearchResultItem (required)
Required. The results of the Google Search.
Поля
Web content snippet that can be embedded in a web page or an app webview.
Whether the Google Search resulted in an error.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
McpServerToolResultStep
MCPServer tool result step.
Описание отсутствует.
Always set to "mcp_server_tool_result" .
Name of the tool which is called for this specific tool call.
The name of the used MCP server.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The output from the MCP server call. Can be simple text or rich content.
FileSearchResultStep
File Search result step.
Описание отсутствует.
Always set to "file_search_result" .
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
GoogleMapsResultStep
Google Maps result step.
Описание отсутствует.
Always set to "google_maps_result" .
result GoogleMapsResultItem (required)
Описание отсутствует.
Поля
places GoogleMapsResultPlaces (optional)
Описание отсутствует.
Поля
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
review_snippets ReviewSnippet (optional)
Описание отсутствует.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Описание отсутствует.
Required. ID to match the ID from the function call block.
A signature hash for backend validation.
The event_id token to be used to resume the interaction stream, from this event.
StepDelta
Описание отсутствует.
Always set to "step.delta" .
Описание отсутствует.
delta StepDeltaData (required)
Описание отсутствует.
Possible Types
Polymorphic discriminator: type
TextDelta
Описание отсутствует.
Always set to "text" .
Описание отсутствует.
ImageDelta
Описание отсутствует.
Always set to "image" .
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
AudioDelta
Описание отсутствует.
Always set to "audio" .
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
Возможные значения:
-
audio/wav -
audio/mp3 -
audio/aiff -
audio/aac -
audio/ogg -
audio/flac -
audio/mpeg -
audio/m4a -
audio/l16 -
audio/opus -
audio/alaw -
audio/mulaw
Deprecated. Use sample_rate instead. The value is ignored.
The sample rate of the audio.
The number of audio channels.
DocumentDelta
Описание отсутствует.
Always set to "document" .
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
Возможные значения:
-
application/pdf
VideoDelta
Описание отсутствует.
Always set to "video" .
Описание отсутствует.
Описание отсутствует.
Описание отсутствует.
Возможные значения:
-
video/mp4 -
video/mpeg -
video/mpg -
video/mov -
video/avi -
video/x-flv -
video/webm -
video/wmv -
video/3gpp
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ThoughtSummaryDelta
Описание отсутствует.
Always set to "thought_summary" .
content ThoughtSummaryContent (optional)
A new summary item to be added to the thought.
Possible Types
Polymorphic discriminator: type
Текстовое содержимое
A text content block.
Описание отсутствует.
Always set to "text" .
Required. The text content.
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ImageContent
An image content block.
Описание отсутствует.
Always set to "image" .
The image content.
The URI of the image.
The mime type of the image.
Возможные значения:
-
image/png -
image/jpeg -
image/webp -
image/heic -
image/heif -
image/gif -
image/bmp -
image/tiff
resolution MediaResolution (optional)
The resolution of the media.
Возможные значения:
-
low -
medium -
high -
ultra_high
ThoughtSignatureDelta
Описание отсутствует.
Always set to "thought_signature" .
Signature to match the backend source to be part of the generation.
TextAnnotationDelta
Описание отсутствует.
Always set to "text_annotation_delta" .
annotations Annotation (optional)
Citation information for model-generated content.
Possible Types
Polymorphic discriminator: type
UrlCitation
A URL citation annotation.
Описание отсутствует.
Always set to "url_citation" .
The URL.
The title of the URL.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
FileCitation
A file citation annotation.
Описание отсутствует.
Always set to "file_citation" .
The URI of the file.
Название файла.
Source attributed for a portion of the text.
User provided metadata about the retrieved context.
Page number of the cited document, if applicable.
Media ID in-case of image citations, if applicable.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
PlaceCitation
A place citation annotation.
Описание отсутствует.
Always set to "place_citation" .
The ID of the place, in `places/{place_id}` format.
Title of the place.
URI reference of the place.
review_snippets ReviewSnippet (optional)
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
Поля
Заголовок рецензии.
A link that corresponds to the user review on Google Maps.
The ID of the review snippet.
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.
End of the attributed segment, exclusive.
ArgumentsDelta
Описание отсутствует.
Always set to "arguments_delta" .
Описание отсутствует.
The event_id token to be used to resume the interaction stream, from this event.
StepStop
Описание отсутствует.
Always set to "step.stop" .
Описание отсутствует.
The event_id token to be used to resume the interaction stream, from this event.
Примеры
Взаимодействие создано
{ "event_type": "interaction.created", "interaction": { "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3-flash-preview", "status": "in_progress", "created": "2025-12-04T15:01:45Z", "updated": "2025-12-04T15:01:45Z" }, "event_id": "evt_123" }
Взаимодействие завершено
{ "event_type": "interaction.completed", "interaction": { "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3-flash-preview", "status": "completed", "created": "2025-12-04T15:01:45Z", "updated": "2025-12-04T15:01:45Z" }, "event_id": "evt_123" }
Interaction Status Update
{ "event_type": "interaction.status_update", "interaction_id": "v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM", "status": "in_progress" }
Error Event
{ "event_type": "error", "error": { "message": "Failed to get completed interaction: Result not found.", "code": "not_found" } }
Шаг Начало
{ "event_type": "step.start", "index": 0, "step": { "type": "model_output" } }
Step Delta
{ "event_type": "step.delta", "index": 0, "delta": { "type": "text", "text": "Hello" } }
Шаг Стоп
{ "event_type": "step.stop", "index": 0 }