Run API
Request execution of an Agent or Team and inspect its resulting status.
Kubernetes resource
Run v1alpha1 requires spec.target with kind Agent or Team and the name of a resource in the same namespace. Optional fields include input, modelEndpointRef, modelName, and routing. Process is not a valid target kind in this chart schema.
apiVersion: core.kaigents.io/v1alpha1
kind: Run
metadata:
name: example-run
spec:
target:
kind: Agent
name: example-agent
input: "Summarize the release notes."Overrides and routing
spec.modelEndpointRef and modelName can override model selection for the Run. routing accepts computeResource, a string-valued nodeSelector map, preferredContextWindow, and contextBudgetStrategy of Summarize, Truncate, or Error. Verify the runner and model endpoint actually implement the behavior you need; schema acceptance alone does not prove a routing policy took effect.
Results
The operator can write observedGeneration, phase, message, outputs, artifact references, and conditions to Run status. An artifact requires name and uri and may include contentType, sizeBytes, or sha256. Treat status as observed state, not as user-controlled spec; compare observedGeneration with metadata.generation when debugging stale results.
kubectl apply -f run.yaml
kubectl get runs -n kaigents -w
kubectl get run example-run -n kaigents -o yaml
kubectl describe run example-run -n kaigentsSafe retries
A new Run can repeat tool effects from a prior attempt. Check the timeline and the external system before resubmitting. Use idempotency keys or a durable deduplication record at the tool boundary for writes; deleting the Run object does not necessarily remove stored artifacts or external records.