package lab.ai.a2a.demo.tool_only;

import org.noear.solon.ai.annotation.ToolMapping;
import org.noear.solon.annotation.Param;

/**
 * @author haiTao.Wang on 2025/8/21.
 */
public class Tools1 {

    @ToolMapping(description = "查询天气预报")
    public String getWeather(@Param(description = "城市位置") String location) {
        return location + "天气晴";
    }

    @ToolMapping(description = "查询温度")
    public String getTemperature(@Param(description = "城市位置") String location) {
        return location + "温度14度";
    }
}