Skip to main content

Module create

Module create 

Source
Expand description

POST /api/v1/agent/create, the Agents tool’s create: a named agent made from a seeded template, the way the new-agent picker makes one (agentdefcreatefromtemplate), so an agent can add to My Agents without the operator’s hands. It is not a worker: it has no leader, takes no place among the caller’s live workers, can be given a seat (Agents set_seat) and is started with Agents open.

Where it runs is asked for as in spawn (container::decide): runtime, container_image and container limits. Making an agent starts nothing and spends nothing, but it adds an agent the user will see, so it asks the user as spawn does, unless the user’s own turn asked for it.

Functions§

create 🔒
discard_created 🔒
Remove an agent whose set-up failed after it was made, as the deleteagent RPC deletes one.
find_template 🔒
The seeded template wanted names: its id, slug or name.
handle_agent_create 🔒
make 🔒
Make the agent, as placement says, and link its account; removed again if it can’t be finished.
message 🔒
pick_route 🔒
The route and model a created agent is asked to run on. A created agent has no leader to inherit from; the harness is its template’s, so harness can only confirm it.