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

Capture logs #485

Merged
merged 8 commits into from
Dec 4, 2023
Merged

Capture logs #485

merged 8 commits into from
Dec 4, 2023

Conversation

CalebCourier
Copy link
Collaborator

This PR adds log collection to Guard.history.

Now each Call and iteration will have a property called logs that is a stack of strings for any logs pushed through the guardrails-ai logger. This will mainly include actions and debug logs for now until we further utilize the logger throughout the guard process

Copy link

vercel bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
guardrails ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 10:01pm

@@ -28,9 +28,13 @@ class Iteration(ArbitraryModel):
)

# TODO
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove todo line

zsimjee and others added 3 commits December 4, 2023 13:54
* refactor validators to multiple files

* complete validator split
* docstring fix

* lint

---------

Co-authored-by: Nefertiti  Rogers <[email protected]>
@CalebCourier CalebCourier merged commit 8022c6f into 0.3.0 Dec 4, 2023
38 checks passed
@CalebCourier CalebCourier deleted the capture-logs branch December 5, 2023 18:23
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.

3 participants