Open andressilvac opened 9 hours ago
@andressilvac having multiple system messages is not necessary to implement the supervisor architecture -- we'll be updating the tutorials to simplify this! are there any other reasons why you need 2 system messages besides the tutorial?
Thanks. So far, not really, I guess I can work without multiple system messages. Thanks.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
When running
LangGraph
agents where the agent's initial set of instructions include two system messages, and the LLM isGemini
(eg.ChatGoogleGenerativeAI
), we get aValueError
:This behavior doesn't occur if
ChatOpenAI
is used instead ofChatGoogleGenerativeAI
.My example is quite basic, but the same problem occurs in more realistic usecases such as the Multi-agent supervisor tutorial.
There the prompt template is of this form:
System Info
System Information
Package Information
Other Dependencies