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

Open Source API #44

Merged
merged 15 commits into from
Jun 17, 2024
Merged

Open Source API #44

merged 15 commits into from
Jun 17, 2024

Conversation

CalebCourier
Copy link
Contributor

@CalebCourier CalebCourier commented Jun 6, 2024

This PR refactors the guardrails-api to be distributable as a python module. It now comes with a built in cli that can be used to start it via guardrails-api start.

This command takes two options:

  1. env - a file path to an env file to use
  2. config - a file path to a guardrails config file to use for in memory

As part of this PR we also rip out all of the additional files and directories that are no longer required to run the api in a standalone manner.

These files can still be found in the use-case specific mirrors of this repo before this changeset in the following two places:
https://github.com/guardrails-ai/graashopper-demo
https://github.com/guardrails-ai/graashopper-playground

Depends On

#45
guardrails-ai/guardrails#804

Other Notes

We should let Nick merge the core schema impl changes before merging this branch because performing the merge into this branch would be easier than the inverse.

TODO

  • Update merge github action to publish module

@CalebCourier CalebCourier requested review from nichwch, zsimjee and a team June 6, 2024 22:23
@CalebCourier CalebCourier changed the title Open source Open Source API Jun 7, 2024
Base automatically changed from feat/streaming-and-in-mem to main June 13, 2024 16:50
@CalebCourier CalebCourier marked this pull request as ready for review June 14, 2024 15:58
guardrails_api/app.py Outdated Show resolved Hide resolved
zsimjee
zsimjee previously approved these changes Jun 14, 2024
@CalebCourier CalebCourier merged commit 65efea5 into main Jun 17, 2024
1 check passed
@CalebCourier CalebCourier deleted the open-source branch June 17, 2024 20:53
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

Successfully merging this pull request may close these issues.

2 participants