Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 2.06 KB

RunCreate.md

File metadata and controls

39 lines (30 loc) · 2.06 KB

RunCreate

Payload for creating a run.

Properties

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']

Example

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)

[Back to Model list] [Back to API list] [Back to README]