reddish icon indicating copy to clipboard operation
reddish copied to clipboard

add support for inlining `Command` inside another `Command`

Open stereobutter opened this issue 4 years ago • 0 comments

Some commands in the redis ai module accept other (redis ai) commands as arguments. It should be possible to inline commands similar to how Args works

Example:

sub_cmd = Command('AI.TENSORSET {tensor} FLOAT {shape} VALUES {values}', 
    tensor='foo', 
    shape=Args([2, 2]), 
    values=Args([1, 2, 3, 4]))
    
Command('AI.DAGEXECUTE ... |> {}', sub_cmd)

stereobutter avatar Nov 16 '21 12:11 stereobutter