`@Configuration(proxyBeanMethods = false) public class WeatherTools { public static final String CURRENT_WEATHER_TOOL = "currentWeather";

WeatherService weatherService = new WeatherService();

/**
 * mock tools 
 * @return
 */
@Bean(CURRENT_WEATHER_TOOL)
@Description("get weather")
Function<WeatherRequest, WeatherResponse> currentWeather() {
    return weatherService;
}

}` Just like this, how can I let users know that I have this current Weather tool and its function description, similar to MCP tools

Comment From: CodeCodeAscension

'@Configuration(proxyBeanMethods = false) public class WeatherTools { public static final String CURRENT_WEATHER_TOOL = “currentWeather”;

``` WeatherService weatherService = new WeatherService();

/* * mock tools * @return / @Bean(CURRENT_WEATHER_TOOL) @Description("get weather") Function currentWeather() { return weatherService; } ```

}`就这样,如何让用户知道我有这个当前的天气工具及其功能说明,类似于 MCP 工具

Isn't it necessary to encapsulate all the tool information for the request before sending the message? You can render it for the front end at this time(my English is not very good. This is the Chinese translation. If there are any unclear expressions, please let me know and I will supplement them in time.)

Comment From: HappyToSummer

'@configuration(proxyBeanMethods = false) public class WeatherTools { public static final String CURRENT_WEATHER_TOOL = “currentWeather”; ``` WeatherService weatherService = new WeatherService();

/* * mock tools * @return / @Bean(CURRENT_WEATHER_TOOL) @Description("get weather") Function currentWeather() { return weatherService; } ```

}`就这样,如何让用户知道我有这个当前的天气工具及其功能说明,类似于 MCP 工具

Isn't it necessary to encapsulate all the tool information for the request before sending the message? You can render it for the front end at this time(my English is not very good. This is the Chinese translation. If there are any unclear expressions, please let me know and I will supplement them in time.)

show me some code,thanks