FoundationModelsCall
Written by
Updated at March 27, 2025
Integration with Yandex Foundation Models. Currently, the only supported integration is the one with YandexGPT API for text generation.
Field name | Type | Required | Default value | Templating is supported | Description |
---|---|---|---|---|---|
modelUrl |
string |
Yes | No | No | ID of the model to call. |
generate |
FoundationModelsCallGenerate | Yes | No | No | Configuring the generate action to generate a text. |
FoundationModelsCallGenerate object
The json
and messages
are mutually exclusive: you can either specify a JSON string or explicitly list the messages.
Field name | Type | Required | Default value | Templating is supported | Description |
---|---|---|---|---|---|
temperature |
double |
No | 0 |
No | With a higher temperature, you get a more creative and randomized response from the model. This parameter accepts values between 0 and 1, inclusive. |
maxTokens |
int64 |
Yes | No | No | Maximum number of tokens to generate. Allows limiting the model's response if needed. |
json |
string |
No | "" |
Yes | Context for the model, as a JSON string. For more information, see the messages field description in the Foundation Models documentation. |
messages |
FoundationModelsCallGenerateMessage[] | No | "" |
No | Context for the model, as a list of input messages. |
FoundationModelsCallGenerateMessage object
Field name | Type | Required | Default value | Templating is supported | Description |
---|---|---|---|---|---|
role |
string |
Yes | No | Yes | Message sender ID. For more information, see TextGeneration.completion. |
text |
string |
Yes | No | Yes | Message text. For more information, see TextGeneration.completion. |