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

Allow using praisonAI as library (non-CLI) #121

Open
jglaser opened this issue Jul 27, 2024 · 0 comments
Open

Allow using praisonAI as library (non-CLI) #121

jglaser opened this issue Jul 27, 2024 · 0 comments

Comments

@jglaser
Copy link

jglaser commented Jul 27, 2024

Fabric (https://github.com/danielmiessler/fabric/tree/main) uses praisonAI as a library. However, praison parses the command line arguments in the main routine, which means that it takes takes fabrics's, which are incompatible with praison's. As a result, agent_file may get overwritten with other content.

https://github.com/danielmiessler/fabric/blob/45fcc547d53ecac2edf52f59f81a5e272cb28878/installer/client/cli/utils.py#L488-L490

praisonAI should only parse command line arguments when called from the command line. It would be nice if it provided an entry point so that it can be used as a library.

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

1 participant