Runs, gRPC: RunService.Submit
Submit event to run
For example, submit function call results when the run is waiting for user input.
gRPC request
rpc Submit (SubmitToRunRequest) returns (SubmitToRunResponse)
SubmitToRunRequest
{
"run_id": "string",
// Includes only one of the fields `tool_result_list`
"tool_result_list": {
"tool_results": [
{
// Includes only one of the fields `function_result`
"function_result": {
"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 |
run_id |
string Required field. ID of the run to submit to. |
tool_result_list |
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 |
tool_results[] |
A list of tool results. |
ToolResult
Represents the result of a tool call.
Field |
Description |
function_result |
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 |
SubmitToRunResponse
{}
Field |
Description |
Empty |