LiveServerContent interface
Stay organized with collections
Save and categorize content based on your preferences.
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
An incremental content update from the model.
Signature:
export interface LiveServerContent
Properties
Property |
Type |
Description |
interrupted |
boolean |
(Public Preview) Indicates whether the model was interrupted by the client. An interruption occurs when the client sends a message before the model finishes it's turn. This is undefined if the model was not interrupted. |
modelTurn |
Content |
(Public Preview) The content that the model has generated as part of the current conversation with the user. |
turnComplete |
boolean |
(Public Preview) Indicates whether the turn is complete. This is undefined if the turn is not complete. |
type |
'serverContent' |
(Public Preview) |
LiveServerContent.interrupted
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Indicates whether the model was interrupted by the client. An interruption occurs when the client sends a message before the model finishes it's turn. This is undefined
if the model was not interrupted.
Signature:
interrupted?: boolean;
LiveServerContent.modelTurn
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The content that the model has generated as part of the current conversation with the user.
Signature:
modelTurn?: Content;
LiveServerContent.turnComplete
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Indicates whether the turn is complete. This is undefined
if the turn is not complete.
Signature:
turnComplete?: boolean;
LiveServerContent.type
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
type: 'serverContent';
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nAn incremental content update from the model.\n\n**Signature:** \n\n export interface LiveServerContent \n\nProperties\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------|----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [interrupted](./ai.liveservercontent.md#liveservercontentinterrupted) | boolean | ***(Public Preview)*** Indicates whether the model was interrupted by the client. An interruption occurs when the client sends a message before the model finishes it's turn. This is `undefined` if the model was not interrupted. |\n| [modelTurn](./ai.liveservercontent.md#liveservercontentmodelturn) | [Content](./ai.content.md#content_interface) | ***(Public Preview)*** The content that the model has generated as part of the current conversation with the user. |\n| [turnComplete](./ai.liveservercontent.md#liveservercontentturncomplete) | boolean | ***(Public Preview)*** Indicates whether the turn is complete. This is `undefined` if the turn is not complete. |\n| [type](./ai.liveservercontent.md#liveservercontenttype) | 'serverContent' | ***(Public Preview)*** |\n\nLiveServerContent.interrupted This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nIndicates whether the model was interrupted by the client. An interruption occurs when the client sends a message before the model finishes it's turn. This is `undefined` if the model was not interrupted.\n\n**Signature:** \n\n interrupted?: boolean;\n\nLiveServerContent.modelTurn This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nThe content that the model has generated as part of the current conversation with the user.\n\n**Signature:** \n\n modelTurn?: Content;\n\nLiveServerContent.turnComplete This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nIndicates whether the turn is complete. This is `undefined` if the turn is not complete.\n\n**Signature:** \n\n turnComplete?: boolean;\n\nLiveServerContent.type This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n type: 'serverContent';"]]