feat: add workflow toolkit and runtime support
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user