Skip to content

Conversation

@ls-rein-martha
Copy link
Contributor

@ls-rein-martha ls-rein-martha commented Sep 10, 2025

Pull Request Intention

This is to support the latest specification of MCP Prompt

To Solve: #51

What changes

  • Java doc for the prompt field to follow MCP Doc
  • Adding title support and mapper to McpSchema.Prompt

@ls-rein-martha ls-rein-martha marked this pull request as ready for review September 10, 2025 09:03
public Mono<String> primitiveTypesMonoTool(boolean flag, byte b, short s, int i, long l, float f, double d) {
return Mono.just(String.format("Primitives: %b, %d, %d, %d, %d, %.1f, %.1f", flag, b, s, i, l, f, d));
return Mono
.just(String.format(Locale.US, "Primitives: %b, %d, %d, %d, %d, %.1f, %.1f", flag, b, s, i, l, f, d));
Copy link
Contributor Author

@ls-rein-martha ls-rein-martha Sep 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a failure on one of the unit tests since decimal represented as , at my machine. Thus, explicitly use Locale.US to handle it.

@tzolov tzolov added this to the 0.4.0 milestone Sep 15, 2025
@tzolov tzolov self-assigned this Sep 15, 2025
@tzolov
Copy link
Collaborator

tzolov commented Sep 15, 2025

Thanks you @ls-rein-martha I will review shortly

@tzolov tzolov merged commit 1e8f6cf into spring-ai-community:main Sep 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants