Interface LiveServerContent

Incremental server update generated by the model in response to client messages.

Content is generated as quickly as possible, and not in real time. Clients may choose to buffer and play it out in real time.

interface LiveServerContent {
    interrupted?: boolean;
    modelTurn?: Content;
    turnComplete?: boolean;
}

Properties

interrupted?: boolean

If true, indicates that a client message has interrupted current model generation. If the client is playing out the content in realtime, this is a good signal to stop and empty the current queue.

modelTurn?: Content

The content that the model has generated as part of the current conversation with the user.

turnComplete?: boolean

If true, indicates that the model is done generating. Generation will only start in response to additional client messages. Can be set alongside content, indicating that the content is the last in the turn.

MMNEPVFCICPMFPCPTTAAATR