Backend¶
backend
¶
Abstract base class for sandbox backends.
Backend(workdir='.', image=None, *, harness)
¶
Bases: ABC
Base class for sandbox backends.
Subclasses implement setup() and run() to provide different execution environments (OpenShell sandbox, Podman container, etc.).
Source code in src/agentic_ci/backend.py
setup(otel_port=None)
abstractmethod
¶
stop()
abstractmethod
¶
run(prompt, model, streaming=True, otel_port=None, otel_rate_file=None, extra_args=None, traceparent=None, effort=None)
abstractmethod
¶
Execute the agent with the given prompt. Returns the exit code.
effort is the resolved reasoning effort (None when no effort
flag is passed). It is exported to the agent as
AGENT_REASONING_EFFORT next to AGENT_MODEL; the matching CLI
flags come from the caller through extra_args.