Adds MCP Sampling implementation that demonstrates how to delegate LLM requests to multiple providers. - add a weather server that retrieves data and uses MCP Sampling to generate creative content - add a client that routes requests to different LLM providers (OpenAI and Anthropic) based on model hints - add README documentation explaining the MCP Sampling workflow and implementation details The MCP Sampling capability enables applications to leverage multiple LLM providers within a single workflow, allowing for creative content generation, model comparison, and specialized task delegation. Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.example.spring.ai</groupId>
|
|
<artifactId>spring-ai-examples-parent</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<packaging>pom</packaging>
|
|
<url>https://github.com/spring-projects/spring-ai</url>
|
|
|
|
<name>Spring AI</name>
|
|
<description>Building AI applications with Spring Boot</description>
|
|
|
|
<modules>
|
|
<module>models/chat/helloworld</module>
|
|
<module>agents/reflection</module>
|
|
<module>kotlin/kotlin-hello-world</module>
|
|
<module>kotlin/kotlin-function-callback</module>
|
|
<module>kotlin/rag-with-kotlin</module>
|
|
<module>misc/spring-ai-java-function-callback</module>
|
|
<module>misc/openai-streaming-response</module>
|
|
<module>model-context-protocol/sqlite/simple</module>
|
|
<module>model-context-protocol/sqlite/chatbot</module>
|
|
|
|
|
|
<!-- modules listed in alphabetical order -->
|
|
<module>model-context-protocol/brave</module>
|
|
|
|
|
|
<module>model-context-protocol/client-starter/starter-default-client</module>
|
|
<module>model-context-protocol/client-starter/starter-webflux-client</module>
|
|
|
|
|
|
<module>model-context-protocol/filesystem</module>
|
|
|
|
|
|
<module>model-context-protocol/weather/manual-webflux-server</module>
|
|
<module>model-context-protocol/weather/starter-stdio-server</module>
|
|
<module>model-context-protocol/weather/starter-webflux-server</module>
|
|
<module>model-context-protocol/weather/starter-webmvc-server</module>
|
|
|
|
<module>model-context-protocol/web-search/brave-starter</module>
|
|
<module>model-context-protocol/web-search/brave-chatbot</module>
|
|
|
|
|
|
<module>model-context-protocol/sampling/mcp-weather-webmvc-server</module>
|
|
<module>model-context-protocol/sampling/mcp-sampling-client</module>
|
|
|
|
|
|
<module>agentic-patterns</module>
|
|
</modules>
|
|
|
|
|
|
</project>
|