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

leverage pydantic parsing instructions #109

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

kukushechkin
Copy link
Contributor

Changing @field_validator('instructions', mode='before') to use default mode value of after allows pydantic to parse incoming dictionaries and create Instruction objects.

@kukushechkin kukushechkin force-pushed the allow-instructions-creation-from-dict branch from 22c19a4 to f1a052d Compare December 20, 2023 11:03
@kukushechkin kukushechkin merged commit 23ab5cf into main Dec 20, 2023
10 checks passed
@kukushechkin kukushechkin deleted the allow-instructions-creation-from-dict branch December 20, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants