diff --git a/agentic-patterns/chain-workflow/pom.xml b/agentic-patterns/chain-workflow/pom.xml index 686f998..1c192a0 100644 --- a/agentic-patterns/chain-workflow/pom.xml +++ b/agentic-patterns/chain-workflow/pom.xml @@ -16,7 +16,7 @@ Demo project for Spring Boot 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/agentic-patterns/evaluator-optimizer/pom.xml b/agentic-patterns/evaluator-optimizer/pom.xml index fbc2011..15f0b08 100644 --- a/agentic-patterns/evaluator-optimizer/pom.xml +++ b/agentic-patterns/evaluator-optimizer/pom.xml @@ -16,7 +16,7 @@ Demo project for Spring Boot 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/agentic-patterns/orchestrator-workers/pom.xml b/agentic-patterns/orchestrator-workers/pom.xml index eb8eb7c..4481624 100644 --- a/agentic-patterns/orchestrator-workers/pom.xml +++ b/agentic-patterns/orchestrator-workers/pom.xml @@ -16,7 +16,7 @@ Demo project for Spring Boot 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/agentic-patterns/parallelization-worflow/pom.xml b/agentic-patterns/parallelization-worflow/pom.xml index 311af78..bac16fb 100644 --- a/agentic-patterns/parallelization-worflow/pom.xml +++ b/agentic-patterns/parallelization-worflow/pom.xml @@ -19,7 +19,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/agentic-patterns/routing-workflow/pom.xml b/agentic-patterns/routing-workflow/pom.xml index d2fd0ad..79fb27e 100644 --- a/agentic-patterns/routing-workflow/pom.xml +++ b/agentic-patterns/routing-workflow/pom.xml @@ -19,7 +19,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/agents/reflection/pom.xml b/agents/reflection/pom.xml index be802db..228b371 100644 --- a/agents/reflection/pom.xml +++ b/agents/reflection/pom.xml @@ -22,7 +22,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/kotlin/kotlin-function-callback/pom.xml b/kotlin/kotlin-function-callback/pom.xml index bb73e78..0037090 100644 --- a/kotlin/kotlin-function-callback/pom.xml +++ b/kotlin/kotlin-function-callback/pom.xml @@ -29,7 +29,7 @@ 17 1.9.25 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/kotlin/kotlin-hello-world/pom.xml b/kotlin/kotlin-hello-world/pom.xml index ae6c786..434446e 100644 --- a/kotlin/kotlin-hello-world/pom.xml +++ b/kotlin/kotlin-hello-world/pom.xml @@ -29,7 +29,7 @@ 17 1.9.25 - 1.0.0-M7 + 1.0.0-SNAPSHOT @@ -65,7 +65,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/kotlin/rag-with-kotlin/pom.xml b/kotlin/rag-with-kotlin/pom.xml index 26d1364..4ee252e 100644 --- a/kotlin/rag-with-kotlin/pom.xml +++ b/kotlin/rag-with-kotlin/pom.xml @@ -29,7 +29,7 @@ 17 1.9.25 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/misc/openai-streaming-response/pom.xml b/misc/openai-streaming-response/pom.xml index 7610191..e715cb7 100644 --- a/misc/openai-streaming-response/pom.xml +++ b/misc/openai-streaming-response/pom.xml @@ -28,7 +28,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT @@ -60,7 +60,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/misc/spring-ai-java-function-callback/pom.xml b/misc/spring-ai-java-function-callback/pom.xml index f17d7ff..9ace397 100644 --- a/misc/spring-ai-java-function-callback/pom.xml +++ b/misc/spring-ai-java-function-callback/pom.xml @@ -28,7 +28,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT @@ -51,7 +51,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/misc/spring-ai-java-function-callback/src/main/java/com/example/java_ai_function_callback/SpringAiJavaFunctionCallbackApplication.java b/misc/spring-ai-java-function-callback/src/main/java/com/example/java_ai_function_callback/SpringAiJavaFunctionCallbackApplication.java index c26268c..934cdfd 100644 --- a/misc/spring-ai-java-function-callback/src/main/java/com/example/java_ai_function_callback/SpringAiJavaFunctionCallbackApplication.java +++ b/misc/spring-ai-java-function-callback/src/main/java/com/example/java_ai_function_callback/SpringAiJavaFunctionCallbackApplication.java @@ -4,7 +4,8 @@ import java.util.function.Function; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.model.ChatResponse; -import org.springframework.ai.model.function.FunctionCallback; +import org.springframework.ai.tool.ToolCallback; +import org.springframework.ai.tool.function.FunctionToolCallback; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -25,7 +26,7 @@ public class SpringAiJavaFunctionCallbackApplication { ChatClient chatClient = chatClientBuilder.build(); ChatResponse response = chatClient .prompt("What are the weather conditions in San Francisco, Tokyo, and Paris? Find the temperature in Celsius for each of the three locations.") - .functions("WeatherInfo") + .tools("WeatherInfo") .call().chatResponse(); System.out.println("Response: " + response); @@ -55,9 +56,8 @@ public class SpringAiJavaFunctionCallbackApplication { static class Config { @Bean - public FunctionCallback weatherFunctionInfo(Function currentWeather) { - return FunctionCallback.builder() - .function("WeatherInfo", currentWeather) + public ToolCallback weatherFunctionInfo(Function currentWeather) { + return FunctionToolCallback.builder("WeatherInfo", currentWeather) .description( "Find the weather conditions, forecasts, and temperatures for a location, like a city or state." ) diff --git a/model-context-protocol/brave/pom.xml b/model-context-protocol/brave/pom.xml index ffdd4f6..d1e14cf 100644 --- a/model-context-protocol/brave/pom.xml +++ b/model-context-protocol/brave/pom.xml @@ -17,7 +17,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/model-context-protocol/client-starter/starter-default-client/pom.xml b/model-context-protocol/client-starter/starter-default-client/pom.xml index a239389..3c13abf 100644 --- a/model-context-protocol/client-starter/starter-default-client/pom.xml +++ b/model-context-protocol/client-starter/starter-default-client/pom.xml @@ -17,7 +17,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/model-context-protocol/client-starter/starter-webflux-client/pom.xml b/model-context-protocol/client-starter/starter-webflux-client/pom.xml index 10a418e..78b1e90 100644 --- a/model-context-protocol/client-starter/starter-webflux-client/pom.xml +++ b/model-context-protocol/client-starter/starter-webflux-client/pom.xml @@ -17,7 +17,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/model-context-protocol/filesystem/pom.xml b/model-context-protocol/filesystem/pom.xml index 834984e..9ad38dc 100644 --- a/model-context-protocol/filesystem/pom.xml +++ b/model-context-protocol/filesystem/pom.xml @@ -22,7 +22,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/sampling/mcp-sampling-client/pom.xml b/model-context-protocol/sampling/mcp-sampling-client/pom.xml index 9d7eac1..0085b2a 100644 --- a/model-context-protocol/sampling/mcp-sampling-client/pom.xml +++ b/model-context-protocol/sampling/mcp-sampling-client/pom.xml @@ -17,7 +17,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT diff --git a/model-context-protocol/sampling/mcp-weather-webmvc-server/pom.xml b/model-context-protocol/sampling/mcp-weather-webmvc-server/pom.xml index f52bb04..eefb74b 100644 --- a/model-context-protocol/sampling/mcp-weather-webmvc-server/pom.xml +++ b/model-context-protocol/sampling/mcp-weather-webmvc-server/pom.xml @@ -23,7 +23,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/sqlite/chatbot/pom.xml b/model-context-protocol/sqlite/chatbot/pom.xml index 069aba6..0bc1523 100644 --- a/model-context-protocol/sqlite/chatbot/pom.xml +++ b/model-context-protocol/sqlite/chatbot/pom.xml @@ -22,7 +22,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/sqlite/simple/pom.xml b/model-context-protocol/sqlite/simple/pom.xml index e4ab277..3ee764c 100644 --- a/model-context-protocol/sqlite/simple/pom.xml +++ b/model-context-protocol/sqlite/simple/pom.xml @@ -22,7 +22,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/weather/manual-webflux-server/pom.xml b/model-context-protocol/weather/manual-webflux-server/pom.xml index 48a0235..f8100a7 100644 --- a/model-context-protocol/weather/manual-webflux-server/pom.xml +++ b/model-context-protocol/weather/manual-webflux-server/pom.xml @@ -27,7 +27,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/weather/starter-stdio-server/pom.xml b/model-context-protocol/weather/starter-stdio-server/pom.xml index 4afc5c9..339fd1a 100644 --- a/model-context-protocol/weather/starter-stdio-server/pom.xml +++ b/model-context-protocol/weather/starter-stdio-server/pom.xml @@ -24,7 +24,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/weather/starter-webflux-server/pom.xml b/model-context-protocol/weather/starter-webflux-server/pom.xml index 9d79cd7..ba88908 100644 --- a/model-context-protocol/weather/starter-webflux-server/pom.xml +++ b/model-context-protocol/weather/starter-webflux-server/pom.xml @@ -23,7 +23,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/weather/starter-webmvc-oauth2-server/pom.xml b/model-context-protocol/weather/starter-webmvc-oauth2-server/pom.xml index dd6d9c5..010fdf5 100644 --- a/model-context-protocol/weather/starter-webmvc-oauth2-server/pom.xml +++ b/model-context-protocol/weather/starter-webmvc-oauth2-server/pom.xml @@ -23,7 +23,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/weather/starter-webmvc-server/pom.xml b/model-context-protocol/weather/starter-webmvc-server/pom.xml index 578fc4e..31ab79c 100644 --- a/model-context-protocol/weather/starter-webmvc-server/pom.xml +++ b/model-context-protocol/weather/starter-webmvc-server/pom.xml @@ -23,7 +23,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/web-search/brave-chatbot/pom.xml b/model-context-protocol/web-search/brave-chatbot/pom.xml index c39fb4f..53af8ab 100644 --- a/model-context-protocol/web-search/brave-chatbot/pom.xml +++ b/model-context-protocol/web-search/brave-chatbot/pom.xml @@ -24,7 +24,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/model-context-protocol/web-search/brave-starter/pom.xml b/model-context-protocol/web-search/brave-starter/pom.xml index 46a1660..1ca67b9 100644 --- a/model-context-protocol/web-search/brave-starter/pom.xml +++ b/model-context-protocol/web-search/brave-starter/pom.xml @@ -23,7 +23,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/models/chat/helloworld/pom.xml b/models/chat/helloworld/pom.xml index 14ef12d..5cd9638 100644 --- a/models/chat/helloworld/pom.xml +++ b/models/chat/helloworld/pom.xml @@ -22,7 +22,7 @@ org.springframework.ai spring-ai-bom - 1.0.0-M7 + 1.0.0-SNAPSHOT pom import diff --git a/models/chat/helloworld/src/main/resources/application.yaml b/models/chat/helloworld/src/main/resources/application.yaml index 0679b3f..87847b7 100644 --- a/models/chat/helloworld/src/main/resources/application.yaml +++ b/models/chat/helloworld/src/main/resources/application.yaml @@ -26,4 +26,4 @@ spring: "type": "integer" } } - } \ No newline at end of file + } diff --git a/prompt-engineering/prompt-engineering-patterns/pom.xml b/prompt-engineering/prompt-engineering-patterns/pom.xml index 7e84fa0..1c1022a 100644 --- a/prompt-engineering/prompt-engineering-patterns/pom.xml +++ b/prompt-engineering/prompt-engineering-patterns/pom.xml @@ -16,7 +16,7 @@ 17 - 1.0.0-M7 + 1.0.0-SNAPSHOT