Declare the service
The example uses an Agent, Prompt, and eval Verifier. The same Service format works for any workload. It also defines when verification runs and what happens if it fails.
apiVersion: wyrd/v1 kind: Service metadata: space: support name: support-service version: "1.0.0" spec: description: Resolve support requests. service_type: api components: - alias: support_agent ref: ./agent.yaml verified_by: - verifier: ./verifier.yaml runs_on: kind: observations_ready on_failure: - kind: notify channel: kind: slack text: Support quality failed
apiVersion: wyrd/v1 kind: Agent metadata: space: support name: support-agent version: "1.0.0" spec: prompt: ./prompt.yaml tool_names: - ticket_search - reply_send run_config: max_iterations: 5 timeout_ms: 45000
apiVersion: wyrd/v1 kind: Prompt metadata: space: support name: support-prompt version: "1.0.0" spec: provider: openai model: gpt-5.5 system: | Resolve the customer request using only supported account information. Escalate when confidence is low. messages: - ${customer_request}
apiVersion: wyrd/v1 kind: Verifier metadata: space: support name: support-quality version: "1.0.0" spec: implementation: kind: eval spec: pass_gate: kind: all_pass tasks: grounded_answer: kind: llm_judge id: grounded_answer context_path: $.answer operator: equals expected: { passed: true }