fix(docs): Correctify the Pass or Fail condition in the Graph API example. (#4712)

This commit is contained in:
Yagnesh M. Bhadiyadra
2025-05-15 19:37:36 +00:00
committed by GitHub
parent 60df867872
commit cacae7bd1f
+2 -2
View File
@@ -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):