Skip to content

Replace the LangChain version of Mustache to chevron#181

Closed
YusakuNo1 wants to merge 2 commits intomicrosoft:mainfrom
YusakuNo1:users/daviwu/migrate-to-chevron
Closed

Replace the LangChain version of Mustache to chevron#181
YusakuNo1 wants to merge 2 commits intomicrosoft:mainfrom
YusakuNo1:users/daviwu/migrate-to-chevron

Conversation

@YusakuNo1
Copy link
Copy Markdown
Contributor

No description provided.

@YusakuNo1 YusakuNo1 requested a review from Copilot March 4, 2025 00:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR replaces the LangChain version of Mustache with the chevron library in the Prompty system to update the template rendering implementation.

  • Updated pyproject.toml to add chevron and its type definitions.
  • Modified renderers.py to import render from chevron instead of the previous mustache module.

Reviewed Changes

File Description
runtime/prompty/pyproject.toml Added chevron and types-chevron dependencies to align with the upgrade.
runtime/prompty/prompty/renderers.py Replaced the mustache import with chevron's render function for template rendering.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@sethjuarez
Copy link
Copy Markdown
Member

Thank you for your contribution! We've migrated Prompty to v2 on main — the codebase has been significantly restructured with AgentSchema-based types, scoped @prompty/* npm packages, and new runtimes.

The v1 code is now preserved on the v1 branch for maintenance. If your change is still relevant for v1, please re-open against the v1 branch. For v2 contributions, please open a new PR against main.

Apologies for any inconvenience, and thanks for your patience!

@sethjuarez sethjuarez closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants