You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ɑ: agentRelated to agents module🔌: awsPrimarily related to Amazon Web Services (AWS) integrations🤖:bugRelated to a bug, vulnerability, unexpected error with an existing feature
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangChain rather than my code.
The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
fromlangchainimporthubfromlangchain_community.chat_models.bedrockimportBedrockChatfromlangchain.agentsimportAgentExecutor, create_structured_chat_agentfromlangchain_community.tools.tavily_searchimportTavilySearchResultsprompt=hub.pull("hwchase17/structured-chat-agent")
llm_model=BedrockChat(
region_name="us-east-1",
model_id="mistral.mistral-7b-instruct-v0:2",
)
tools= [TavilySearchResults()]
agent=create_structured_chat_agent(llm_model, tools, prompt)
agent_executor=AgentExecutor(
agent=agent,
tools=tools,
verbose=True,
handle_parsing_errors=True,
return_intermediate_steps=True,
)
agent.invoke({"input": "What is the president of USA?"})
Error Message and Stack Trace (if applicable)
Exception: ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModelWithResponseStream operation: Malformed input request: #: extraneous key [stop_sequences] is not permitted, please reformat your input and try again.
Description
I am using Mistral model of AWS Bedrock as an agent
It doesn't work
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020
Python Version: 3.10.0 (default, Nov 11 2023, 18:46:15) [Clang 15.0.0 (clang-1500.0.40.1)]
Packages not installed (Not Necessarily a Problem)
The following packages were not found:
langgraph
langserve
The text was updated successfully, but these errors were encountered:
dosubotbot
added
Ɑ: agent
Related to agents module
🔌: aws
Primarily related to Amazon Web Services (AWS) integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
Mar 27, 2024
dosubotbot
added
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Jun 26, 2024
Ɑ: agentRelated to agents module🔌: awsPrimarily related to Amazon Web Services (AWS) integrations🤖:bugRelated to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Exception: ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModelWithResponseStream operation: Malformed input request: #: extraneous key [stop_sequences] is not permitted, please reformat your input and try again.
Description
System Info
System Information
Package Information
Packages not installed (Not Necessarily a Problem)
The following packages were not found:
The text was updated successfully, but these errors were encountered: