Files
cleveragents-core/examples/actions/inputs-schema.yaml
T
aditya 8da7bd1e56
CI / lint (pull_request) Successful in 16s
CI / typecheck (pull_request) Successful in 26s
CI / security (pull_request) Successful in 22s
CI / quality (pull_request) Successful in 16s
CI / integration_tests (pull_request) Successful in 4m17s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Successful in 7m45s
CI / docker (pull_request) Successful in 44s
CI / coverage (pull_request) Successful in 5m38s
docs(action): add action YAML schema and examples
2026-02-13 19:01:55 +05:30

60 lines
1.6 KiB
YAML

# ============================================================================
# Inputs-Schema Action — Advanced Input Validation via JSON Schema
# ============================================================================
# Demonstrates the optional inputs_schema field for complex validation
# rules beyond basic argument types.
# Create: agents action create --config examples/actions/inputs-schema.yaml
# ============================================================================
name: local/data-pipeline
description: "Build and validate a data processing pipeline"
long_description: |
Creates a data pipeline with configurable stages. Uses inputs_schema
for advanced validation of the pipeline configuration structure.
strategy_actor: local/strategist
execution_actor: local/executor
definition_of_done: |
Pipeline runs end-to-end successfully. All stages produce valid
output. Data quality checks pass on final output.
reusable: true
read_only: false
arguments:
- name: pipeline_name
type: string
required: true
description: "Name of the pipeline to build"
- name: dry_run
type: boolean
required: false
description: "Run in dry-run mode without writing output"
default: false
inputs_schema:
type: object
properties:
stages:
type: array
items:
type: object
properties:
name:
type: string
transform:
type: string
required:
- name
- transform
output_format:
type: string
enum:
- csv
- json
- parquet
required:
- stages