The hub.pull function with the include_model_options parameter is not working as expected when used with StructuredPrompt #7592
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
get-quick-replies
is a prompt defined in the LangChain Hub usingStructuredPrompt
. However, the following code does not work as expected:As an alternative, I’m using the following approach, which works as intended:
Error Message and Stack Trace (if applicable)
No response
Description
When using the get-quick-replies prompt from LangChain Hub with the includeModel option, the structured output does not work as expected. The quickReplies property is missing from the response, and only raw content is returned. However, when the includeModel option is not used and the model is piped manually, the prompt works correctly and returns the quickReplies property as expected.
System Info
node = v22.11.0
yarn = v1.22.22
"@langchain/community": "^0.3.27",
"@langchain/core": "^0.3.35",
"@langchain/google-genai": "^0.1.6",
"@langchain/openai": "^0.4.0",
"@langchain/pinecone": "^0.1.3",
"langchain": "^0.3.13",
"langsmith": "^0.3.3",
The text was updated successfully, but these errors were encountered: