-
Notifications
You must be signed in to change notification settings - Fork 121
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
Implement custom formatting in response_format #145
Implement custom formatting in response_format #145
Conversation
Signed-off-by: Sternakt <[email protected]>
Signed-off-by: Sternakt <[email protected]>
Signed-off-by: Sternakt <[email protected]>
Signed-off-by: Sternakt <[email protected]>
…ormat' of github.com:ag2ai/ag2 into 143-feature-request-add-formatting-option-to-response_format
Thanks @sternakt, all tests passed. Will tweak the notebook text and then merge, thanks so much for this! |
Signed-off-by: Mark Sze <[email protected]>
The code can be simplified by setting |
Why are these changes needed?
These changes enable the developer to define custom structured output formatting of the response messages from the client.
Example use:
The assistant will output messages in the following format:
For example, if the assistant is solving the square root of 16, the output could look like this:
This format is automatically generated by the
format
method of theMathReasoning
model, ensuring clear and structured communication.Related issue number
Closes #143
Checks