feat: add date-based weather forecasts and dynamic time context
This commit is contained in:
1 parent
a394f22d77
commit
975352c7d6
12 files changed
+607
-15
No files matched your search
@@ -14,7 +14,9 @@ func (w *Weather) Info(ctx context.Context) (*schema.ToolInfo, error) {
|
||||
Name: definition.Name,
|
||||
Desc: definition.Description,
|
||||
ParamsOneOf: schema.NewParamsOneOfByParams(map[string]*schema.ParameterInfo{
|
||||
"location": {Type: schema.String, Required: true, Desc: "需要查询的城市或地点,例如北京、上海"},
|
||||
"location": {Type: schema.String, Required: true, Desc: "需要查询的城市或地点,例如北京、上海"},
|
||||
"start_date": {Type: schema.String, Desc: "预报开始日期,YYYY-MM-DD;不传则查当前天气"},
|
||||
"end_date": {Type: schema.String, Desc: "预报结束日期,YYYY-MM-DD,含当天;不传则只查开始日期,不能单独提供"},
|
||||
}),
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user