Build

BuildResource

Methods

create() ->
post/v5/builds

Submit a container image build.

Upload a tar.gz archive containing the build context (Dockerfile and any files needed for the build) along with image name, tag, and optional build arguments.

Maximum file size: 500MB

retrieve() ->
get/v5/builds/{build_id}

Get a build by ID, including current status from the cloud provider.

list() -> SyncCursorPage[]
get/v5/builds

List Builds

logs() ->
get/v5/builds/{build_id}/logs

Stream build logs via Server-Sent Events (SSE).

Returns a streaming response with content-type text/event-stream. Each log line is sent as an SSE data event.

Parameters
build_id: str
Returns
line: str

The log line content

Request example
200Example
cancel() ->
post/v5/builds/{build_id}/cancel

Cancel a pending or running build.

Returns 202 Accepted — the actual cancellation happens asynchronously via a Temporal workflow.

list_undeployed() ->
get/v5/builds/undeployed

List agents that exist only as cloud builds with no healthy deployment.

Returns distinct agent names from builds that have never had a deploy reach 'healthy' status, along with each agent's latest build info and total build count. Useful for surfacing agents that have been built but not yet deployed.

Domain types

class AgentexCloudBuild: ...
class StreamChunk: ...

A single log line from the build process.