File tree Expand file tree Collapse file tree
model-context-protocol/mcp-annotations/mcp-annotations-server/src/main/java/org/springframework/ai/mcp/sample/server/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package org .springframework .ai .mcp .sample .server .model ;
2+
3+ import org .springaicommunity .mcp .annotation .McpToolParam ;
4+
5+ public class Point {
6+
7+ @ McpToolParam (description = "The latitude of the location" , required = true )
8+ private double latitude ;
9+ @ McpToolParam (description = "The longitude of the location" , required = true )
10+ private double longitude ;
11+
12+
13+ public Point () {}
14+ public Point (double latitude , double longitude ) {
15+ this .latitude = latitude ;
16+ this .longitude = longitude ;
17+ }
18+ public double getLatitude () {
19+ return latitude ;
20+ }
21+ public void setLatitude (double latitude ) {
22+ this .latitude = latitude ;
23+ }
24+ public double getLongitude () {
25+ return longitude ;
26+ }
27+ public void setLongitude (double longitude ) {
28+ this .longitude = longitude ;
29+ }
30+
31+ }
You can’t perform that action at this time.
0 commit comments