Skip to content

langgraph checkpoint #29

Answered by JoshuaC215
wenliangz asked this question in Q&A
Sep 4, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Good question - the code you referenced (from here) is used to send a conversation summary to LlamaGuard only for content moderation BEFORE the actual agent evaluation, so it shouldn't be impacting the result. Arguably, it's overkill and it would be OK to just send the last message here.

For the "main" agent evaluation, note that conversation history is stored in state["messages"] and when you use an existing thread_id, this value is pre-populated with the earlier messages. You are still responsible for taking those messages and sending them to the LLM - this is how LangGraph works, not specific to this repo. In my example agent, that part happens here.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wenliangz
Comment options

@JoshuaC215
Comment options

@wenliangz
Comment options

@JoshuaC215
Comment options

Answer selected by JoshuaC215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants