-
Notifications
You must be signed in to change notification settings - Fork 19.7k
feat(core): enrich HTML pretty_repr for prompt templates and display partial variables
#33891
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
base: master
Are you sure you want to change the base?
feat(core): enrich HTML pretty_repr for prompt templates and display partial variables
#33891
Conversation
CodSpeed Performance ReportMerging #33891 will not alter performanceComparing
|
pretty_repr for prompt templates and display partial variables
240bc29 to
ea5f4f3
Compare
|
Hi @eyurtsev |
|
Please, can an active maintainer review the PR when chanced? |
…serializer-agnostic
…partial variables
6bca87f to
c55e790
Compare
pretty_repr(html=True)for prompt templates to improve readability in notebooks/docs.get_msg_title_repr.partial_variables(colored whenhtml=True).ChatPromptTemplate.pretty_reprBaseStringMessagePromptTemplate.pretty_repr(shows partials from underlying prompt)_StringImageMessagePromptTemplate.pretty_repr(aggregates partials across sub-prompts)Lint and test
make format,make lint, andmake testlocally for the modified package.libs/core/tests/unit_tests/prompts/test_pretty_repr_chat.pyChatPromptTemplate.