update_agent
Update a workspace agent's name, description, status, or configuration. Every parameter is optional; fields left unset are unchanged. `status` activates…
Update a workspace agent's name, description, status, or configuration.
Every parameter is optional; fields left unset are unchanged. status activates
("active") or pauses ("paused") the agent; an agent must be active before it
can run or be scheduled. The configuration fields mirror the agent's config:
max_budget and timeout_minutes cap each run, notify_on_run notifies the
user who triggered a run when it finishes, notify_on_message (on by default)
alerts the workspace when the agent hands a conversation back with a question or
a reply (set it false when your own system relays those), workspace_scope
controls the working directory ("agent" keeps one persistent workspace across
runs, "user" one per end user, "session" starts clean), interactive keeps
compute warm for keep_warm_minutes after a conversation goes quiet,
concurrent lets an agent with a persistent workspace run several turns at once
(at most max_concurrent_runs when set; two turns never share a subject such as
one pull request), auto_improve lets Levain build and publish the agent's next
version on its own, github_issues_repo (owner/name, "" to clear) files the
agent's suggested improvements as issues in that GitHub repository instead, for
a recipe kept and published from your own repository (owner/name:path also
names the recipe's directory in it), and memory_extraction set false stops
Levain extracting facts from the agent's conversations into memory (on by
default; stored facts and the agent's own memory tools are unaffected). Use
set_agent_runtime to move the agent to a self-hosted runtime.
Configuration fields are read, merged, and written back as a whole: a config
change made elsewhere (the app, set_agent_runtime, an auto_improve publish, or
a concurrent update_agent call) between the read and the write here is
overwritten.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | |
name | string | no | |
description | string | no | |
status | string | no | |
max_budget | number | no | |
timeout_minutes | integer | no | |
notify_on_run | boolean | no | |
notify_on_message | boolean | no | |
workspace_scope | string | no | |
interactive | boolean | no | |
keep_warm_minutes | integer | no | |
concurrent | boolean | no | |
max_concurrent_runs | integer | no | |
auto_improve | boolean | no | |
github_issues_repo | string | no | |
memory_extraction | boolean | no |
update_agent_trigger
Enable or disable a trigger, or change its event_filter. Fields left at None are unchanged. event_filter has the shape create_agent_trigger documents;…
update_bandit_status
Change an experiment's lifecycle status. 'running' starts or resumes; 'paused' freezes weights while still serving; 'stopped' permanently concludes the…