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

User-friendly way for Serving and Calling AI Scripts via API #847

Open
jamespacileo opened this issue Nov 11, 2024 · 2 comments
Open

User-friendly way for Serving and Calling AI Scripts via API #847

jamespacileo opened this issue Nov 11, 2024 · 2 comments

Comments

@jamespacileo
Copy link

Thank you for your hard work on this library—it has been incredibly helpful for creating quick AI scripts and drafting new behaviors.

I was wondering if there’s currently a way to serve these scripts via an API, allowing them to be accessed programmatically by importing a client and calling the scripts directly. This would greatly streamline integration and expand the library's usability for automated workflows.

Thank you again for your time and assistance!

@pelikhan
Copy link
Member

@jamespacileo currently, you could call the CLI and get the full JSON report back (using the --json flag). It's a bit heavy but it gets things done. We could have a JS/Py wrapper around this; even a dockerized version.

Another solution would be to spin up the server that VSCode uses and talk to it. It'll have a faster startup time and it's only websockets.

@pelikhan
Copy link
Member

Now thinking that genaiscript should run as a server and have a tsrpc interface to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants