-
Notifications
You must be signed in to change notification settings - Fork 19.9k
feat(core): enrich HTML pretty_repr for prompt templates and display partial variables
#34073
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
#34073
Conversation
…serializer-agnostic
…partial variables
CodSpeed Performance ReportMerging #34073 will not alter performanceComparing
|
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.