[bot] Instrument Guardrails AI (30,625 weekly downloads)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- observability
Rechercherichtung
Start in py/src/braintrust/integrations/ and inspect py/src/braintrust/wrappers/, then read the [tool.braintrust.matrix] section of py/pyproject.toml and py/noxfile.py for existing integration patterns. Done means the guarded call and parse entry points are instrumented, with the integration represented in the matrix and a nox session or other repository test coverage added.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
guardrails-ai (import name guardrails, by Guardrails AI Inc.) is a framework for adding structural, type, and quality validation directly around LLM calls. Its primary execution surfaces are Guard.for_pydantic(output_class=...) / Guard().use(<validators>) to construct a guard, and then the callable form guard(model=..., messages=[...]), which invokes the LLM directly and returns a response with .validated_output — i.e. the Guard itself owns the LLM call, not just post-hoc validation of already-generated text. guard.parse(...) is the sibling entrypoint for validating a given string against attached validators.
This is a distinct project/package from NVIDIA NeMo Guardrails (nemoguardrails, tracked separately in #768) — different maintainer, different PyPI package, different API shape (Guard/validators around a direct LLM call vs. NeMo's LLMRails rails pipeline). This repository has zero instrumentation for Guardrails AI anywhere: no py/src/braintrust/integrations/guardrails* directory, no wrapper, no nox session, no cassette directory, and no entry in py/pyproject.toml's [tool.braintrust.matrix].
What's missing
guard(model=..., messages=[...])(and async variant) — the primary "guarded LLM call" entrypoint; since Guardrails AI drives the LLM call itself, an unwrapped call here means the underlying model call, validated output, and any validator retries are entirely invisible to Braintrust tracing.guard.parse(...)/guard.parse_async(...)— validates a given string against attached validators, returning a result with.validation_passed.Guard.for_pydantic(output_class=...)/Guard().use(<validators>)— guard construction with attached validators (useful for capturing validator configuration as metadata on the guarded-call span).
Weekly downloads
Weekly downloads: 30,625 (as of 2026-09-28; https://pypistats.org/api/packages/guardrails-ai/recent)
Braintrust docs status
not_found. Checked https://www.braintrust.dev/docs/guides/tracing and https://www.braintrust.dev/docs/guides/tracing/integrations (both checked 2026-09-28) — neither the tracing-integrations list ("OpenTelemetry, Temporal, Vercel AI SDK, OpenRouter SDK, LangChain, LangChain4j, LangSmith, LlamaIndex, Apollo GraphQL, Cloudflare Workers AI, DSPy, Google Discovery Engine, Instructor, LiteLLM, Ruby LLM, Spring AI, Traceloop, TrueFoundry") nor the agent-framework list mentions Guardrails AI or Guardrails.
Upstream sources
- PyPI: https://pypi.org/project/guardrails-ai/
- GitHub: https://github.com/guardrails-ai/guardrails
- Docs (quickstart): https://www.guardrailsai.com/docs/getting_started/quickstart
Braintrust docs sources checked
- https://www.braintrust.dev/docs/guides/tracing (checked 2026-09-28)
- https://www.braintrust.dev/docs/guides/tracing/integrations (checked 2026-09-28)
Local repo files inspected
py/src/braintrust/integrations/— noguardrails/directory (only unrelatedpy/src/braintrust/integrations/__init__.pyand the separately-trackednemoguardrailsgap in #768)py/src/braintrust/wrappers/— no Guardrails AI wrapperpy/pyproject.toml[tool.braintrust.matrix]— noguardrails-aientrypy/noxfile.py— notest_guardrailssession- Repo-wide case-insensitive grep for
guardrails.ai/guardrails_aiunderpy/src/braintrust/**/*.py— zero matches
- Vorherrschende Sprache
- Python
- Sterne
- 22
- Forks
- 24
- Ø Merge
- 16 Std.
- Gemergte PRs (30 T.)
- 101
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus braintrustdata/braintrust-sdk-python
-
feature python
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
braintrustdata/braintrust-sdk-python#868 ·
Maintainer antworten meist innerhalb von 1 Tag
-
new-integration python
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-python#854 ·
Maintainer antworten meist innerhalb von 1 Tag
-
new-integration python
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
braintrustdata/braintrust-sdk-python#853 ·
Maintainer antworten meist innerhalb von 1 Tag
-
new-integration python
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
braintrustdata/braintrust-sdk-python#852 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Migrate legacy HTTPConnection callers to the policy-aware Transport incrementallyEvtl. vergeben @AbhiPrasad hat das vor 11 Tagen übernommen. Offenpython
braintrustdata/braintrust-sdk-python#839 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in braintrustdata/braintrust-sdk-python
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
gradio-app/gradio#13964 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 93/100
BSData/horus-heresy-3rd-edition#3232 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jbacalso24/mimry#123 ·
Maintainer antworten meist innerhalb von 1 Tag
-
p:3-mid pydanty:bug pydanty:is-working
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
pydantic/pydantic-ai#10153 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue priority: medium size: S testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
cubrid-lab/cubrid-cookbook-python#316 ·
Maintainer antworten meist innerhalb von 1 Tag