feat: add workflow toolkit and runtime support

This commit is contained in:
2026-07-06 10:45:19 +08:00
parent efc6fa7067
commit ed7f89d44f
44 changed files with 3770 additions and 127 deletions
+21
View File
@@ -0,0 +1,21 @@
name: get_weather
desc: 查询指定城市实时天气
params:
- name: city
type: string
required: true
description: 城市名称
env:
- WEATHER_API_KEY
steps:
- url: https://api.weather.com/current?q=${param:city}&key=${env:WEATHER_API_KEY}
method: GET
var:
- name: city_name
extract: location.name
- name: temp
extract: current.temp_c
- name: condition
extract: current.condition.text
result: |
${step0:city_name} 当前温度 ${step0:temp}°C${step0:condition}