dora-rs / dora

DORA (Dataflow-Oriented Robotic Application) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.35k stars 68 forks source link

Allow top-level fields in node declaration #478

Closed phil-opp closed 1 month ago

phil-opp commented 2 months ago

We plan to deprecate operators in their current form in a future release. This PR implements the proposed new syntax for declaring custom nodes without an extra level of nesting:

nodes:
    - id: node_1
      path: something.py
      inputs:
        - input_1: "image"
        - input_2: "audio"
      outputs:
        - output_1
        - output_2

The inputs/outputs/etc fields are now directly declared next to the id field, instead of being nested under a custom field. The source field was renamed to path as discussed in our last meeting.

TODO:

phil-opp commented 1 month ago

I regenerated the schemas in 73648603.

haixuanTao commented 1 month ago

LGTM