Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
a7ed072 to
f74e2e6
Compare
d2c0827 to
d07d699
Compare
Member
Author
|
@dylanholmes @vachillo still working through docs and some final cleanup, but the PR is certainly developed/large enough for first pass of reviews. |
collindutter
commented
Dec 24, 2024
collindutter
commented
Dec 24, 2024
896e534 to
3a07430
Compare
5d6adf5 to
d068967
Compare
d068967 to
d03d71b
Compare
d03d71b to
c80f087
Compare
vachillo
reviewed
Jan 6, 2025
4d99d8c to
3fd4d20
Compare
3fd4d20 to
8ab92dc
Compare
Member
|
offline discussion: support a json schema for |
dylanholmes
approved these changes
Jan 6, 2025
| def _init_structured_output(self, prompt_stack: PromptStack) -> None: | ||
| from griptape.tools import StructuredOutputTool | ||
|
|
||
| if (output_schema := prompt_stack.output_schema) is not None: |
Contributor
There was a problem hiding this comment.
Optional, but I think avoiding nesting is cleaner:
output_schema = prompt_stack.output_schema
if output_schema is None:
return
...
vachillo
approved these changes
Jan 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Added
PromptTask.output_schemafor setting an output schema to be used with Structured Output.Agent.output_schemafor setting an output schema to be used on the Agent's Prompt Task.BasePromptDriver.structured_output_strategyfor changing the Structured Output strategy betweennative,tool, andrule.Issue ticket number and link
Closes #1468