diff --git a/suites-help/示例代码/Hello-World.md b/suites-help/示例代码/Hello-World.md index 62d13bf..69d2689 100644 --- a/suites-help/示例代码/Hello-World.md +++ b/suites-help/示例代码/Hello-World.md @@ -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 --input key=val +# 通过 API 发布后执行 +agc run /tmp/output --suite-id --input message="Hello, AgentGIS!" ``` 完整代码参考:`SuiteHub/hello-world-suite`