Deployments
Create Deployment
beta.deployments.create(**kwargs) -> BetaManagedAgentsDeploymentList Deployments
beta.deployments.list(**kwargs) -> PageCursor<BetaManagedAgentsDeployment>Get Deployment
beta.deployments.retrieve(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentUpdate Deployment
beta.deployments.update(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentArchive Deployment
beta.deployments.archive(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentRun Deployment Now
beta.deployments.run(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentRunPause Deployment
beta.deployments.pause(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentUnpause Deployment
beta.deployments.unpause(deployment_id, **kwargs) -> BetaManagedAgentsDeploymentModels
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (archived_at set). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
BetaManagedAgentsDeploymentInitialEvent = BetaManagedAgentsDeploymentUserMessageEvent { content, type } | BetaManagedAgentsDeploymentUserDefineOutcomeEvent { description, rubric, type, max_iterations } | BetaManagedAgentsDeploymentSystemMessageEvent { content, type }An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.
An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.
BetaManagedAgentsDeploymentInitialEventParams = BetaManagedAgentsUserMessageEventParams { content, type } | BetaManagedAgentsUserDefineOutcomeEventParams { description, rubric, type, max_iterations } | BetaManagedAgentsSystemMessageEventParams { content, type }An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.
An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.
BetaManagedAgentsDeploymentPausedReason = BetaManagedAgentsManualDeploymentPausedReason { type } | BetaManagedAgentsErrorDeploymentPausedReason { error, type }Why a deployment is paused. Non-null exactly when status is paused.
Why a deployment is paused. Non-null exactly when status is paused.
BetaManagedAgentsDeploymentPausedReasonError = BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError { type } | BetaManagedAgentsAgentArchivedDeploymentPausedReasonError { type } | BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError { type } | 11 moreThe error that triggered an auto-pause. Matches the failed run's error.type.
The error that triggered an auto-pause. Matches the failed run's error.type.
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (archived_at set). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
BetaManagedAgentsSessionResourceConfig = BetaManagedAgentsGitHubRepositoryResourceConfig { type, url, checkout, mount_path } | BetaManagedAgentsFileResourceConfig { file_id, type, mount_path } | BetaManagedAgentsMemoryStoreResourceConfig { memory_store_id, type, access, instructions }A configured session resource. Echoes the input minus write-only credentials.
A configured session resource. Echoes the input minus write-only credentials.