create_schedule
Create a cron schedule for an agent. cron_expr is a 5-field expression; pass exactly one of prompt or initial_state. skip_if_active_within_minutes makes the…
Create a cron schedule for an agent.
cron_expr is a 5-field expression; pass exactly one of prompt or initial_state. skip_if_active_within_minutes makes the schedule relative to activity: a due fire is skipped when any run of the agent, other than one this schedule fired, started within that many minutes. run_as=True makes its runs act for you, with your person memory and rules, as a run you opened would; it is set only at creation and needs a signed-in user. Accepts an agent id or slug.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | |
cron_expr | string | yes | |
prompt | string | no | |
timezone | string | no | |
version | integer | no | |
initial_state | object | no | |
skip_if_active_within_minutes | integer | no | |
run_as | boolean | no |
create_runtime
Register a self-hosted runtime and return its connection credentials. The credentials are returned once; pass them to the runner with `levain-runtime…
create_slack_pr_watch
Post a Slack card for each open pull request into a base branch. repository is 'owner/name'. Each pull request into base_branch gets one message in…