Skip to content

add support for inlining Command inside another Command #9

Description

@stereobutter

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions