Skip to content

Commit b78a8b9

Browse files
committed
updated getting started doc
1 parent 4b6e935 commit b78a8b9

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

docs/getting-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ spec:
177177
- id: check-status
178178
type: Script
179179
config:
180-
script_config:
180+
scriptConfig:
181181
tool: docker
182182
action: ps
183183
args:
@@ -187,15 +187,15 @@ spec:
187187
- id: get-stats
188188
type: Script
189189
config:
190-
script_config:
190+
scriptConfig:
191191
tool: docker
192192
action: stats
193193

194194
# Step 3: Get logs from exited containers (Script - shell command)
195195
- id: get-logs
196196
type: Script
197197
config:
198-
script_config:
198+
scriptConfig:
199199
command: |
200200
docker ps -a --filter "status=exited" --format "{{.Names}}" | head -3 | while read name; do
201201
echo "=== Logs for $name ==="
@@ -259,15 +259,15 @@ Script nodes run shell commands or native tools directly:
259259
- id: get-logs
260260
type: Script
261261
config:
262-
script_config:
262+
scriptConfig:
263263
command: docker logs --tail 50 myapp
264264
parse: lines # Split output into array
265265

266266
# Native tool (built-in support)
267267
- id: check-pods
268268
type: Script
269269
config:
270-
script_config:
270+
scriptConfig:
271271
tool: kubectl
272272
action: get
273273
args:
@@ -315,7 +315,7 @@ Script nodes have native tools that run without LLM involvement:
315315
- id: check-pods
316316
type: Script
317317
config:
318-
script_config:
318+
scriptConfig:
319319
tool: docker # docker, kubectl, http, json, file
320320
action: ps
321321
args:

docs/reference/agentflow-spec.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ nodes:
216216
- id: check-containers
217217
type: Script
218218
config:
219-
script_config:
219+
scriptConfig:
220220
command: docker ps -a --format "{{json .}}"
221221
parse: json # Parse output as JSON
222222
timeout_seconds: 30
@@ -232,7 +232,7 @@ nodes:
232232
- id: get-pods
233233
type: Script
234234
config:
235-
script_config:
235+
scriptConfig:
236236
tool: kubectl # Built-in tool
237237
action: get # Tool action
238238
args:
@@ -291,7 +291,7 @@ spec:
291291
- id: check-status
292292
type: Script
293293
config:
294-
script_config:
294+
scriptConfig:
295295
tool: docker
296296
action: ps
297297
args:
@@ -301,7 +301,7 @@ spec:
301301
- id: get-logs
302302
type: Script
303303
config:
304-
script_config:
304+
scriptConfig:
305305
command: |
306306
docker ps -a --filter "status=exited" --format "{{.Names}}" | \
307307
while read name; do

examples/flows/data-pipeline.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
- id: read-data
2323
type: Script
2424
config:
25-
script_config:
25+
scriptConfig:
2626
tool: file
2727
action: read
2828
args:
@@ -33,7 +33,7 @@ spec:
3333
- id: extract-fields
3434
type: Script
3535
config:
36-
script_config:
36+
scriptConfig:
3737
command: |
3838
echo '${read-data.output.content}' | jq '.items[] | {name: .name, value: .value}'
3939
parse: json
@@ -43,7 +43,7 @@ spec:
4343
- id: calc-stats
4444
type: Script
4545
config:
46-
script_config:
46+
scriptConfig:
4747
command: |
4848
echo '${read-data.output.content}' | jq '{
4949
total_items: (.items | length),

examples/flows/docker-troubleshoot-script.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
- id: check-status
2626
type: Script
2727
config:
28-
script_config:
28+
scriptConfig:
2929
tool: docker
3030
action: ps
3131
args:
@@ -35,15 +35,15 @@ spec:
3535
- id: get-stats
3636
type: Script
3737
config:
38-
script_config:
38+
scriptConfig:
3939
tool: docker
4040
action: stats
4141

4242
# Step 3: Get logs for unhealthy containers using shell command (no LLM)
4343
- id: get-logs
4444
type: Script
4545
config:
46-
script_config:
46+
scriptConfig:
4747
command: |
4848
docker ps -a --filter "status=exited" --format "{{.Names}}" | head -5 | while read name; do
4949
echo "=== Logs for $name ==="

examples/flows/k8s-health-check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
- id: get-pods
2828
type: Script
2929
config:
30-
script_config:
30+
scriptConfig:
3131
tool: kubectl
3232
action: get
3333
args:
@@ -38,15 +38,15 @@ spec:
3838
- id: get-events
3939
type: Script
4040
config:
41-
script_config:
41+
scriptConfig:
4242
command: kubectl get events --sort-by='.lastTimestamp' -n ${CHECK_NAMESPACE} | tail -20
4343
parse: lines
4444

4545
# Step 3: Check node resources
4646
- id: check-nodes
4747
type: Script
4848
config:
49-
script_config:
49+
scriptConfig:
5050
tool: kubectl
5151
action: get
5252
args:
@@ -56,7 +56,7 @@ spec:
5656
- id: health-check
5757
type: Script
5858
config:
59-
script_config:
59+
scriptConfig:
6060
tool: http
6161
action: get
6262
args:

0 commit comments

Comments
 (0)