File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def generate_template_config(
118118 guard_instantiations = []
119119
120120 for i , guard in enumerate (template ["guards" ]):
121- guard_instantiations .append (f"guard{ i } = AsyncGuard .from_dict(guards[{ i } ])" )
121+ guard_instantiations .append (f"guard{ i } = Guard .from_dict(guards[{ i } ])" )
122122 guard_instantiations = "\n " .join (guard_instantiations )
123123 # Interpolate variables
124124 output_content = template_content .format (
Original file line number Diff line number Diff line change 11import json
22import os
3- from guardrails import AsyncGuard, Guard
3+ from guardrails import Guard
44from guardrails.hub import {VALIDATOR_IMPORTS}
55
66try:
Original file line number Diff line number Diff line change 11import json
22import os
3- from guardrails import AsyncGuard
3+ from guardrails import Guard
44
55try :
66 file_path = os .path .join (os .getcwd (), "guard-template.json" )
1111 SystemExit (1 )
1212
1313# instantiate guards
14- guard0 = AsyncGuard .from_dict (guards [0 ])
14+ guard0 = Guard .from_dict (guards [0 ])
You can’t perform that action at this time.
0 commit comments