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

Issue: validation error for AIMessage when run call to model with tools prefilled #1411

Open
GuillermoGaete opened this issue Jan 13, 2025 · 0 comments

Comments

@GuillermoGaete
Copy link

Issue you'd like to raise.

Hi! I am trying to reproduce my agent run in lang smith to debug my prompt.

https://smith.langchain.com/o/caa3b100-d0d0-4625-a557-282a455b05aa/playground/r/e2f9ec00-6c23-47b7-92b4-af84cd39dca1

I am getting the following error:

image
"1 validation error for AIMessage\ntype\n  Input should be 'ai' [type=literal_error, input_value='AIMessageChunk', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.9/v/literal_error"

Suggestion:

No response

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

No branches or pull requests

1 participant