Skip to content

Commit af0d4fa

Browse files
committed
Update class model
Signed-off-by: kidmtt94 <kidmtt94@gmail.com>
1 parent 86f7c76 commit af0d4fa

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

  • model-context-protocol/mcp-annotations/mcp-annotations-server/src/main/java/org/springframework/ai/mcp/sample/server/model
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)