docs: rename parallel_workflow --> prompt_chaining_workflow (#4283)

Make the docs clearer within the prompt chaining section
This commit is contained in:
HeardACat
2025-04-15 17:38:39 -04:00
committed by GitHub
parent cd967c40ac
commit 63ebb3a846
+2 -2
View File
@@ -222,7 +222,7 @@ As noted in the Anthropic blog on `Building Effective Agents`:
@entrypoint()
def parallel_workflow(topic: str):
def prompt_chaining_workflow(topic: str):
original_joke = generate_joke(topic).result()
if check_punchline(original_joke) == "Pass":
return original_joke
@@ -231,7 +231,7 @@ As noted in the Anthropic blog on `Building Effective Agents`:
return polish_joke(improved_joke).result()
# Invoke
for step in parallel_workflow.stream("cats", stream_mode="updates"):
for step in prompt_chaining_workflow.stream("cats", stream_mode="updates"):
print(step)
print("\n")
```