generateContentStream

actual fun generateContentStream(prompt: Content, vararg prompts: Content): Flow<GenerateContentResponse>(source)

Generates new content as a stream from the input Content given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The input(s) given to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.


Generates new content as a stream from the text input given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The text to be send to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.

expect fun generateContentStream(prompt: Content, vararg prompts: Content): Flow<GenerateContentResponse>(source)

Generates new content as a stream from the input Content given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The input(s) given to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.


Generates new content as a stream from the text input given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The text to be send to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.

actual fun generateContentStream(prompt: Content, vararg prompts: Content): Flow<GenerateContentResponse>(source)

Generates new content as a stream from the input Content given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The input(s) given to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.


Generates new content as a stream from the text input given to the model as a prompt.

Return

A Flow which will emit responses as they are returned by the model.

Parameters

prompt

The text to be send to the model as a prompt.

See also

for types of errors.

Throws

if the request failed.