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

Support of agent-js with bigger frameworks like nestjs #121

Open
haayhappen opened this issue Oct 31, 2024 · 2 comments
Open

Support of agent-js with bigger frameworks like nestjs #121

haayhappen opened this issue Oct 31, 2024 · 2 comments

Comments

@haayhappen
Copy link

Hey guys,

I appreciate the effort you put into this, enabling OpenAIs realtime API at such early stage.

Quick question:
What would be the ideal way to integrate this into a bigger framework, say NestJs?

It currently looks like the preferred approach is to start this via its own node process to access the worker CLI.
There are two problems I'm currently facing:

  1. I already have a node process running (ideally including the dynamic agent config), namely the nest server (might be possible to enable this via subprocesses?)
  2. I might not have the agent available at startup time eg.: if I want to let the app user configure behavioral aspects of the agent.

I'd appreciate any guidance!

@leethree
Copy link

leethree commented Nov 4, 2024

yes would like the ability to run LiveKit programatically instead of CLI.

@nbsp
Copy link
Member

nbsp commented Nov 4, 2024

it is possible to run your worker programmatically! cli.runApp is a simple CLI wrapper on top of new Worker(new WorkerOptions(...)). you can feed whatever options whenever you want and simply start the worker without using CLI.

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

3 participants