Repository navigation
Expand file tree
/
Copy pathconfig.yaml
More file actions
55 lines (49 loc) · 1.69 KB
/
Copy pathconfig.yaml
File metadata and controls
55 lines (49 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 09_graph — Graph Pipeline
#
# Graph orchestration: deterministic DAG with explicit edges.
# Execution order is fixed by the edges — no agent-driven handoffs.
# Nodes at the same depth can execute in parallel (strands handles this).
#
# Run:
# uv run python examples/09_graph/main.py
models:
default:
provider: bedrock
model_id: openai.gpt-oss-20b-1:0
agents:
content_strategist:
model: default
system_prompt: |
You are a content strategist. Given a blog post topic, produce:
- A clear title
- A target audience description (one sentence)
- A structured outline with 4-5 section headings and a bullet point per section
Output only the title, audience, and outline — nothing else.
content_writer:
model: default
system_prompt: |
You are a content writer. You receive a topic and outline.
Write a complete blog post following the outline exactly.
Use clear, engaging prose. Include an introduction and conclusion.
Output the full post in markdown format.
copy_editor:
model: default
system_prompt: |
You are a copy editor. You receive a draft blog post.
Review and improve it for:
- Grammar and spelling
- Sentence variety and flow
- Consistent tone (professional but approachable)
- Header formatting in markdown
Return the polished final version of the post.
orchestrations:
blog_pipeline:
mode: graph
# entry_name must be a node with no incoming edges (the pipeline start).
entry_name: content_strategist
edges:
- from: content_strategist
to: content_writer
- from: content_writer
to: copy_editor
entry: blog_pipeline