Skip to content

Commit 2a16d0b

Browse files
committed
fix lint
Signed-off-by: Huamin Chen <[email protected]>
1 parent cdbbf10 commit 2a16d0b

File tree

1 file changed

+21
-19
lines changed
  • src/semantic-router/pkg/connectivity/mcp/api

1 file changed

+21
-19
lines changed

src/semantic-router/pkg/connectivity/mcp/api/types.go

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ package api
1212

1313
// ClassifyRequest represents the arguments for the classify_text tool call
1414
type ClassifyRequest struct {
15-
Text string `json:"text"` // Text to classify
16-
WithProbabilities bool `json:"with_probabilities,omitempty"` // Request full probability distribution
15+
Text string `json:"text"` // Text to classify
16+
WithProbabilities bool `json:"with_probabilities,omitempty"` // Request full probability distribution
1717
}
1818

1919
// ClassifyResponse represents the response from the classify_text MCP tool.
@@ -22,12 +22,13 @@ type ClassifyRequest struct {
2222
// results (class index and confidence) and optional routing information (model and use_reasoning).
2323
//
2424
// Example JSON:
25-
// {
26-
// "class": 3,
27-
// "confidence": 0.85,
28-
// "model": "openai/gpt-oss-20b",
29-
// "use_reasoning": true
30-
// }
25+
//
26+
// {
27+
// "class": 3,
28+
// "confidence": 0.85,
29+
// "model": "openai/gpt-oss-20b",
30+
// "use_reasoning": true
31+
// }
3132
type ClassifyResponse struct {
3233
// Class is the 0-based index of the predicted category
3334
Class int `json:"class"`
@@ -53,13 +54,14 @@ type ClassifyResponse struct {
5354
// "with_probabilities": true.
5455
//
5556
// Example JSON:
56-
// {
57-
// "class": 3,
58-
// "confidence": 0.85,
59-
// "probabilities": [0.05, 0.03, 0.07, 0.85, ...],
60-
// "model": "openai/gpt-oss-20b",
61-
// "use_reasoning": true
62-
// }
57+
//
58+
// {
59+
// "class": 3,
60+
// "confidence": 0.85,
61+
// "probabilities": [0.05, 0.03, 0.07, 0.85, ...],
62+
// "model": "openai/gpt-oss-20b",
63+
// "use_reasoning": true
64+
// }
6365
type ClassifyWithProbabilitiesResponse struct {
6466
// Class is the 0-based index of the predicted category
6567
Class int `json:"class"`
@@ -84,9 +86,10 @@ type ClassifyWithProbabilitiesResponse struct {
8486
// The client calls this tool during initialization to discover which categories the server supports.
8587
//
8688
// Example JSON:
87-
// {
88-
// "categories": ["business", "law", "medical", "technical", "general"]
89-
// }
89+
//
90+
// {
91+
// "categories": ["business", "law", "medical", "technical", "general"]
92+
// }
9093
type ListCategoriesResponse struct {
9194
// Categories is the ordered list of category names.
9295
// The index position in this array corresponds to the "class" index in ClassifyResponse.
@@ -96,4 +99,3 @@ type ListCategoriesResponse struct {
9699
// - class 2 = "medical"
97100
Categories []string `json:"categories"`
98101
}
99-

0 commit comments

Comments
 (0)