mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 15:42:25 +02:00
fix(docs): Correctify the Pass or Fail condition in the Graph API example. (#4712)
This commit is contained in:
@@ -122,8 +122,8 @@ As noted in the Anthropic blog on `Building Effective Agents`:
|
||||
|
||||
# Simple check - does the joke contain "?" or "!"
|
||||
if "?" in state["joke"] or "!" in state["joke"]:
|
||||
return "Fail"
|
||||
return "Pass"
|
||||
return "Pass"
|
||||
return "Fail"
|
||||
|
||||
|
||||
def improve_joke(state: State):
|
||||
|
||||
Reference in New Issue
Block a user