Tool Calling Example
This module mainly implements the FunctionToolcallback && MethodToolcallback versions of three tools (time, translation and weather).
More available tools can be found on this documentation. For mcp style tools please check spring-ai-alibaba-mcp-example.
How to Run
Baidu translation API access document: https://api.fanyi.baidu.com/product/113
Access document of weather forecast API: https://www.weatherapi.com/docs/
spring:
ai:
alibaba:
toolcalling:
baidutranslate:
enabled: true
app;-id: ${BAIDU_TRANSLATE_APP_ID}
secret-key: ${BAIDU_TRANSLATE_SECRET_KEY}
time:
enabled: true
weather:
enabled: true
api-key: ${WEATHER_API_KEY}