Skip to content

[Platform] Simplify choice handling with multiple results #216

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Jul 27, 2025

Q A
Bug fix? no
New feature? no
Docs? no
Issues
License MIT

The idea of choices is that a completion result could have multiple results when option n larger than 1. Until now the Choice class was rather simple and just assumed text or tool - and therefore in theory other choices where impossible. not sure anyone ever had an issue with this, but this now is more correct with encapsulating multiple results in the ChoiceResult. Makes the code even easier and more correct.

Pulled out of #136 to reduce the noise.

Examples:
image

@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Jul 27, 2025
@chr-hertel chr-hertel force-pushed the simplify-choice-handling branch from 6a3dc02 to 115bf8c Compare July 27, 2025 21:47
@chr-hertel chr-hertel force-pushed the simplify-choice-handling branch 2 times, most recently from df60b01 to 3388480 Compare July 27, 2025 21:51
@chr-hertel chr-hertel changed the title Simplify choice handling with multiple results [Platform] Simplify choice handling with multiple results Jul 27, 2025
@chr-hertel chr-hertel force-pushed the simplify-choice-handling branch 9 times, most recently from 61548ce to 5db093a Compare August 1, 2025 08:26
@chr-hertel chr-hertel force-pushed the simplify-choice-handling branch from 5db093a to 3affdb8 Compare August 1, 2025 09:18
@chr-hertel chr-hertel requested a review from OskarStark August 1, 2025 09:19
@chr-hertel chr-hertel merged commit 2200a53 into main Aug 1, 2025
13 checks passed
@chr-hertel chr-hertel deleted the simplify-choice-handling branch August 2, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Issues & PRs about the AI Platform component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants