diff --git a/agents-flex-llm/agents-flex-llm-ollama/src/test/java/com/agentsflex/llm/ollama/WeatherFunctions.java b/agents-flex-llm/agents-flex-llm-ollama/src/test/java/com/agentsflex/llm/ollama/WeatherFunctions.java new file mode 100644 index 0000000..32171d2 --- /dev/null +++ b/agents-flex-llm/agents-flex-llm-ollama/src/test/java/com/agentsflex/llm/ollama/WeatherFunctions.java @@ -0,0 +1,22 @@ +package com.agentsflex.llm.ollama; + +import com.agentsflex.core.llm.functions.annotation.FunctionDef; +import com.agentsflex.core.llm.functions.annotation.FunctionParam; + +public class WeatherFunctions { + + @FunctionDef(name = "get_the_weather_info", description = "get the weather info") + public static String getWeatherInfo( + @FunctionParam(name = "city", description = "the city name") String name + ) { + return "Snowy days"; + } + + + @FunctionDef(name = "get_the_temperature", description = "get the temperature") + public static String getTemperature( + @FunctionParam(name = "city", description = "the city name") String name + ) { + return "The temperature in " + name + " is 15°C"; + } +}