Can actions actually return a value?
For example, I would like to have this kind of action.
I am not interested in calling this action in the front-end (hence
internalAction). I've seen in the demos on GitHub (https://github.com/get-convex/convex-demos) examples of actions being called in the front-end (https://github.com/get-convex/convex-demos/tree/main/vector-search) to get a return value, but not examples of actions returning something in the backend.Indeed, my seemingly only option to run an action in the backend is with the scheduler:
The above schedules the action to run in the future, which is not what I want.
I want to actually await the action and get its return value before executing the rest of the backend code (in this case, a mutation), is there a way to do this?
I also tried to call
openai.beta.threads, but the linter complains that this expression it's not callable.Originally I tried to just use a normal function, or what it's equivalent, just call
openai.beta.threads.create() inside of my mutation, but I got this:Thank you!
