Payload for creating a run.
| Name | Type | Description | Notes |
|---|---|---|---|
| thread_id | str | The ID of the thread to run. If not provided, creates a stateless run. 'thread_id' is ignored unless Threads stage is implemented. | [optional] |
| agent_id | str | The agent ID to run. If not provided will use the default agent for this service. 'agent_id' is ignored unless Agents stage is implemented. | [optional] |
| input | Input | [optional] | |
| messages | List[Message] | The messages to pass an input to the agent. | [optional] |
| metadata | object | Metadata to assign to the run. | [optional] |
| config | Config | [optional] | |
| webhook | str | Webhook to call after run finishes. | [optional] |
| on_completion | str | Whether to delete or keep the thread when run completes. Must be one of 'delete' or 'keep'. Defaults to 'delete' when thread_id not provided, otherwise 'keep'. | [optional] |
| on_disconnect | str | The disconnect mode to use. Must be one of 'cancel' or 'continue'. | [optional] [default to 'cancel'] |
| if_not_exists | str | How to handle missing thread. Must be either 'reject' (raise error if missing), or 'create' (create new thread). | [optional] [default to 'reject'] |
from ap_client.models.run_create import RunCreate
# TODO update the JSON string below
json = "{}"
# create an instance of RunCreate from a JSON string
run_create_instance = RunCreate.from_json(json)
# print the JSON string representation of the object
print(RunCreate.to_json())
# convert the object into a dict
run_create_dict = run_create_instance.to_dict()
# create an instance of RunCreate from a dict
run_create_from_dict = RunCreate.from_dict(run_create_dict)