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

Enhance regex of structured_chat agents' output parser #8965

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

edwardzjl
Copy link
Contributor

@edwardzjl edwardzjl commented Aug 9, 2023

Current regex only extracts agent's action between '``` ```', this commit will extract action between both '```json ```' and '``` ```'

This is very similar to #7511

@vercel
Copy link

vercel bot commented Aug 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 10, 2023 1:35am

@dosubot dosubot bot added Ɑ: agent Related to agents module 🤖:improvement Medium size change to existing code to handle new use-cases labels Aug 9, 2023
Current regex only extracts agent's action between '``` ```', this commit will extract action between both '```json ```' and '``` ```'
@baskaryan
Copy link
Collaborator

thanks @edwardzjl!

@baskaryan baskaryan merged commit cb5fb75 into langchain-ai:master Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: agent Related to agents module 🤖:improvement Medium size change to existing code to handle new use-cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants