generateContent

actual suspend fun generateContent(prompt: Content, vararg prompts: Content): GenerateContentResponse(source)

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

Return

The content generated 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 from the text input given to the model as a prompt.

Return

The content generated 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 suspend fun generateContent(prompt: Content, vararg prompts: Content): GenerateContentResponse(source)

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

Return

The content generated 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 from the text input given to the model as a prompt.

Return

The content generated 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 suspend fun generateContent(prompt: Content, vararg prompts: Content): GenerateContentResponse(source)

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

Return

The content generated 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 from the text input given to the model as a prompt.

Return

The content generated 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.