-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Does Letta support specifying json_schema in the create message api #2508
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
Comments
What we recommend for this is to create a tool that has the schema you want - for example: def respond_to_user(response: MyPydanticModel):
""" Respond to the user with a structured response """
return response.model_dump() |
Thanks, I'll give that a shot. |
I've run into an issue setting up the custom tool. Here's what I've done so far.
I got the following error after the agent used the analyze_meeting tool:
Can you help me understand what is wrong with the structure of the custom tool code? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't figure out how to get structured output when using an agent that uses an openai gpt4o model for example. The openai API has you add a response_format key to the in the completions call. The Letta API doesn't mention this option.
The text was updated successfully, but these errors were encountered: