mcp: fix inaccurate package doc (#534)
This commit is contained in:
parent
1489ba7681
commit
ab092510d2
1 changed files with 2 additions and 2 deletions
|
|
@ -80,9 +80,9 @@
|
|||
// validated. As a special case, if the output type is 'any', no output schema
|
||||
// is generated.
|
||||
//
|
||||
// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResponse, Out, error) {
|
||||
// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResult, Out, error) {
|
||||
// return nil, Out{Answer: 2*in.Number}, nil
|
||||
// }
|
||||
// ...
|
||||
// mcp.AddTool(&mcp.Tool{Name: "double", Description: "double a number"}, double)
|
||||
// mcp.AddTool(server, &mcp.Tool{Name: "double"}, double)
|
||||
package mcp
|
||||
|
|
|
|||
Loading…
Reference in a new issue