You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -16,18 +16,18 @@ The key differences between this wrapper and the python library are as follows:
16
16
1. No support for re-asking (though you can perform reasks yourself outside of the library using `ValidationOutcome.reask` or `guard.history.at(#).reask_prompts` when defined)
17
17
1. LLM calls must be made by the user and the text response passed into parse
18
18
19
-
In addition to above, this library also supports the readonly properties on the [ValidationOutcome class](https://www.guardrailsai.com/docs/api_reference_markdown/validation_outcome) as well as readonly versions of the History & Logs related classes like [Call](https://www.guardrailsai.com/docs/api_reference_markdown/history_and_logs#call-objects), [Iteration](https://www.guardrailsai.com/docs/api_reference_markdown/history_and_logs#iteration-objects), etc..
19
+
In addition to above, this library also supports the readonly properties on the [ValidationOutcome class](https://www.guardrailsai.com/docs/hub/api_reference_markdown/validation_outcome) as well as readonly versions of the History & Logs related classes like [Call](https://www.guardrailsai.com/docs/api_reference_markdown/history_and_logs#call-objects), [Iteration](https://www.guardrailsai.com/docs/api_reference_markdown/history_and_logs#iteration-objects), etc..
20
20
21
21
See the JS docs [here](/docs/modules.md)
22
22
23
23
## Installation
24
24
```sh
25
-
npm i git+https://github.com/guardrails-ai/guardrails-js.git
Copy file name to clipboardExpand all lines: debug.test.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,14 @@ async function main() {
13
13
<rail version="0.1">
14
14
15
15
<output>
16
-
<list name="user_orders" description="Generate a list of user, and how many orders they have placed in the past." format="length: 1 10" on-fail-length="fix">
16
+
<list name="user_orders" description="Generate a list of user, and how many orders they have placed in the past." format="hub://guardrails/valid_length: 1 10" on-fail-length="fix">
0 commit comments