Weather Search
, with the following steps:
Weather Search
, you need to create the relevant directory and files under api/core/external_data_tool
.
schema.json
, which defines the frontend component specifications, detailed in .weather_search.py
code template, where you can implement the specific business logic.
name
must be the custom type name, consistent with the directory and file name, and must be unique.Weather Search
external data tool extension type in the Dify application orchestration interface for debugging.
schema.json
form validation method, called when the user clicks “Publish” to save the configuration.
config
form parameters
{{variable}}
custom form variablesinputs
: Variables passed by the end userquery
: Current conversation input content from the end user, a fixed parameter for conversational applications.