Payload for creating a run.
create_params = {
"assistant_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
"thread_id": UUID("123e4567-e89b-12d3-a456-426614174001"),
"run_id": UUID("123e4567-e89b-12d3-a456-426614174002"),
"status": "pending",
"metadata": {"owner": "user123"},
"prevent_insert_if_inflight": True,
"multitask_strategy": "reject",
"if_not_exists": "create",
"after_seconds": 10,
"kwargs": {"key": "value"},
"action": "interrupt"
}RunsCreate()typing.TypedDict| Name | Type |
|---|---|
| assistant_id | UUID | None |
| thread_id | UUID | None |
| run_id | UUID | None |
| status | RunStatus | None |
| metadata | MetadataInput |
| prevent_insert_if_inflight | bool |
| multitask_strategy | MultitaskStrategy |
| if_not_exists | IfNotExists |
| after_seconds | int |
| kwargs | dict[str, typing.Any] |
| action | typing.Literal['interrupt', 'rollback'] | None |
typing.Optional assistant ID to use for this run.
typing.Optional thread ID to use for this run.
typing.Optional run ID to use for this run.
typing.Optional status for this run.
typing.Optional metadata for the run.
Prevent inserting a new run if one is already in flight.
Multitask strategy for this run.
IfNotExists for this run.
Number of seconds to wait before creating the run.
Keyword arguments to pass to the run.
Action to take if updating an existing run.