本页还没有译文
本页 5 段还没译成日本語,下面显示的是英文原文。INVALID_PROMPT_INPUT
还没翻译译自英文(docs.langchain.com)本页 5 段都还没译
Occurs when a prompt template received missing or invalid input variables.
Troubleshooting
To resolve this error, you can:
- Review your prompt template for correctness. When using f-string formats, ensure proper escaping of curly braces:
- Use
{{for single braces in f-strings - Use
{{{{for double braces in f-strings
- Use
- When using
MessagesPlaceholdercomponents, confirm you're passing message arrays or message-like objects. If using shorthand tuples, wrap variable names in curly braces like["placeholder", "{messages}"] - Debug by examining actual inputs to your prompt template by using LangSmith or logging to verify they match expectations
- If sourcing prompts from LangChain Prompt Hub, isolate and test the prompt with sample inputs to ensure it functions as intended
AI 翻译查看英文原文