Runs, REST: Run.Submit
Submit event to run
For example, submit function call results when the run is waiting for user input.
HTTP request
PATCH https://rest-assistant.api.cloud.yandex.net/assistants/v1/runs/submit
Body parameters
{
"runId": "string",
// Includes only one of the fields `toolResultList`
"toolResultList": {
"toolResults": [
{
// Includes only one of the fields `functionResult`
"functionResult": {
"name": "string",
// Includes only one of the fields `content`
"content": "string"
// end of the list of possible fields
}
// end of the list of possible fields
}
]
}
// end of the list of possible fields
}
Field |
Description |
runId |
string Required field. ID of the run to submit to. |
toolResultList |
A list of tool results to submit to the run, such as the output of a function call. Includes only one of the fields Event to submit to the run. |
ToolResultList
Represents a list of tool results.
Field |
Description |
toolResults[] |
A list of tool results. |
ToolResult
Represents the result of a tool call.
Field |
Description |
functionResult |
Represents the result of a function call. Includes only one of the fields |
FunctionResult
Represents the result of a function call.
Field |
Description |
name |
string The name of the function that was executed. |
content |
string The result of the function call, represented as a string. Includes only one of the fields |
Response
HTTP Code: 200 - OK