Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for inlining Command inside another Command #9

Open
stereobutter opened this issue Nov 16, 2021 · 0 comments
Open

add support for inlining Command inside another Command #9

stereobutter opened this issue Nov 16, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@stereobutter
Copy link
Owner

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 stereobutter added the enhancement New feature or request label Nov 16, 2021
@stereobutter stereobutter self-assigned this Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant