Task API
Define one reusable step, its agent, prompt, and optional approval requirement.
Kubernetes resource
The Task v1alpha1 chart schema exposes agentName, prompt, requiresGate, and string-valued metadata under spec. A Process step refers to a Task by name.
apiVersion: core.kaigents.io/v1alpha1
kind: Task
metadata:
name: research
spec:
agentName: example-agent
prompt: "Summarize the input."
requiresGate: trueApproval and references
requiresGate marks a step for human review in a compatible workflow integration. The Task CRD stores this intent; it does not itself create an approval inbox or block arbitrary direct Agent Runs. agentName identifies the intended Agent, while Process.steps[].taskRef names this Task. Ensure the referenced resources exist in the same namespace and check your adapter supports the path you intend to execute.
- Keep the prompt narrowly scoped and describe the input and output expected by the next step.
- Use string-valued metadata for workflow-specific labels, not credentials or sensitive customer data.
- For irreversible tools, enforce authorization at the integration even when requiresGate is set.
Inspect
kubectl get tasks -n kaigents
kubectl get task research -n kaigents -o yaml
kubectl explain task.spec --api-version=core.kaigents.io/v1alpha1