schema: https://opendataproducts.org/odpr-v1.0/schema/odpr.yaml
version: "1.0"
kind: Recipe
recipe:
  metadata:
    id: RCP-HYBRID-001
    name:
      en: Hybrid Graph Review
    description:
      en: Infer graph context locally and review the portfolio with a hosted model.
  version: "1.0.0"
  type: hybrid
  execution:
    mode: hybrid
  inputs:
    - id: portfolio-workspace
      path: portfolio/
  steps:
    - id: build-graph
      command: odpg.build
      runtimeRef: runtime-profiles/examples/local-graph.yaml#local-graph
      input: generated/fragments/
      output: generated/graph.yaml
    - id: generate-review-notes
      command: generate
      runtimeRef: runtime-profiles/examples/production-quality.yaml#production-quality
      kind: objective
      input: generated/graph.yaml
      output: generated/review-notes/
    - id: explain-portfolio
      command: portfolio.explain
  outputs:
    - id: graph-context
      path: generated/graph.yaml
    - id: review-notes
      path: generated/review-notes/
  review:
    required: true
