-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Improve typed task outputs #1651
Improve typed task outputs #1651
Conversation
…pydantic-or-json-output
…-json-output' of https://github.com/joaomdmoura/crewAI into brandon/cre-492-improve-task-execution-with-pydantic-or-json-output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
Just left one suggestion (nitpick), and the tests are falling.
Aside from that all good 😄
@@ -214,3 +214,29 @@ def create_converter( | |||
raise Exception("No output converter found or set.") | |||
|
|||
return converter | |||
|
|||
|
|||
def generate_model_description(model: Type[BaseModel]) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Adding a docstring here could be good to inform the user about the function's goal
…pydantic-or-json-output
…-json-output' of https://github.com/joaomdmoura/crewAI into brandon/cre-492-improve-task-execution-with-pydantic-or-json-output
I confirmed that this is working well. I'm looking forward to the next release, which should improve the performance of all agents using Pydantic. Having the prompt a bit larger (more tokens) in my use-case, I'm noticing a few more secs on avg, but that's 👌 from my perspective. |
No description provided.