System instrcution in langgraph and Restful API #5359
AnemonePetal
started this conversation in
Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone. I know it sounds like a trivial question. But it make me very confused.
According to my observation (using langsmith), langgraph tends to handle system instruction like:
However, if we check the implementation of gemini cli. It actually use
systemInstruction
field in the method generateContent. If we use json to represent each field, I could give an example:You could see that gemini cli would also provide environment prompt at the beginning of the chat. However, role definition would be put into their native systemInstruction field.
I want to know whether langgraph support this way to provide systemInstruction? Do we have any benefits to do that? How does google handle this field systemInstruction?
Beta Was this translation helpful? Give feedback.
All reactions