Ash FrameworkAF
Ash Framework7mo ago
14 replies
ken-kost

Simple prompt in custom action or iex shell

I can't seem to figure out how to do a simple prompt i.e. one prompt - one response. What would be the simplest way using AshAi? How could I do it directly in shell?

I was playing around AshAi.Actions.Prompt.run/3 but couldn't grok it.

    action :my_action do
      run fn input, context ->
...

this is how my action starts. not sure if I can put somewhere the builtin prompt call :thinkies:
Was this page helpful?