Skip to main content

Crate libbrat_workflow

Crate libbrat_workflow 

Source
Expand description

Workflow template system for brat.

This crate provides YAML-based workflow templates that can be expanded into Grite convoys and tasks. Workflows are stored in .brat/workflows/ and can be either:

  • Sequential workflows (type: workflow): Steps execute in order based on dependencies
  • Parallel convoys (type: convoy): Legs execute in parallel with optional synthesis

§Example

# .brat/workflows/code-review.yaml
name: code-review
version: 1
type: convoy

inputs:
  pr:
    description: "Pull request number"
    required: true

legs:
  - id: correctness
    title: "Correctness Review"
    body: "Review for logic errors..."

  - id: performance
    title: "Performance Review"
    body: "Review for performance issues..."

synthesis:
  title: "Review Synthesis"
  body: "Combine findings..."

Structs§

InputSpec
Input variable specification.
LegSpec
A leg in a parallel convoy.
StepSpec
A step in a sequential workflow.
SynthesisSpec
Synthesis step that runs after all legs complete.
WorkflowExecutor
Executor for running workflow templates.
WorkflowInstance
Result of executing a workflow.
WorkflowParser
Parser for loading workflow templates from YAML files.
WorkflowTemplate
A workflow template loaded from YAML.

Enums§

WorkflowError
Errors that can occur during workflow operations.
WorkflowType
Workflow type determines execution model.