docs: fix Hello World example - correct workflow format (#8)
This commit is contained in:
@@ -26,13 +26,7 @@ steps:
|
||||
name: 输出信息
|
||||
script: run
|
||||
params:
|
||||
message: message
|
||||
|
||||
resolved_params:
|
||||
- step_index: 0
|
||||
step_name: 输出信息
|
||||
params:
|
||||
message: "Hello, AgentGIS!"
|
||||
message: $params.message
|
||||
```
|
||||
|
||||
### scripts/run.py
|
||||
@@ -58,10 +52,10 @@ print(json.dumps(result))
|
||||
|
||||
```bash
|
||||
# 打包
|
||||
tar czf scripts.tar.gz workflow.yaml scripts/
|
||||
tar czf hello-world.tgz workflow.yaml scripts/
|
||||
|
||||
# 发布后执行
|
||||
agc run /tmp/output --suite-id <suite-id> --input key=val
|
||||
# 通过 API 发布后执行
|
||||
agc run /tmp/output --suite-id <suite-id> --input message="Hello, AgentGIS!"
|
||||
```
|
||||
|
||||
完整代码参考:`SuiteHub/hello-world-suite`
|
||||
|
||||
Reference in New Issue
Block a user