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

FEAT provide a faster way to extract converted values from responses without writing response.request_pieces[0].converted_value #568

Open
romanlutz opened this issue Nov 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@romanlutz
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Title says it all! Writing response.request_pieces[0].converted_value is tedious. There should be a simpler way to do this, at least with responses that have just one piece.

Describe the solution you'd like

Maybe response.get_values() that just returns the list of converted_values of all its pieces? And perhaps get_values(single=True)

@romanlutz romanlutz added the enhancement New feature or request label Nov 19, 2024
@romanlutz
Copy link
Contributor Author

Thanks to @paulinek13 in #718 we have this on SeedPrompt. I would love to see this on PromptRequestResponse as well. Still up for grabs 🙂

@paulinek13
Copy link
Contributor

Hi! I'd be more than happy to help with this kind of issue again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants