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

Convert structured prompts to structured output in magentic one #4849

Open
r-bit-rry opened this issue Dec 29, 2024 · 0 comments
Open

Convert structured prompts to structured output in magentic one #4849

r-bit-rry opened this issue Dec 29, 2024 · 0 comments

Comments

@r-bit-rry
Copy link
Contributor

What feature would you like to be added?

Some of the prompts in magentic one (most noticeable is the ledger update) request a structured output JSON from the model.
Since both Autogen, gpt-4o and even ollama (starting december 2024) support structured output.
I believe there is room to create those classes, basing of BaseModel from pydantic and model_to_json().
I'm raising this here for grabs, but I will start working on it if time allows.

Why is this needed?

Save retry attempts in magentic-one.
Move to a more robust approach in handling responses.
Allow for better tool support by validating arguments for tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant