Skip to content

Commit b3225ad

Browse files
committed
examples/server/memory: fix misleading code
Tools shouldn't both set StructuredContent and return a typed output. Remove the assignment.
1 parent f37e549 commit b3225ad

File tree

1 file changed

+0
-5
lines changed
  • examples/server/memory

1 file changed

+0
-5
lines changed

examples/server/memory/kb.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,6 @@ func (k knowledgeBase) CreateEntities(ctx context.Context, req *mcp.CallToolRequ
442442
res.Content = []mcp.Content{
443443
&mcp.TextContent{Text: "Entities created successfully"},
444444
}
445-
446-
res.StructuredContent = CreateEntitiesResult{
447-
Entities: entities,
448-
}
449-
450445
return &res, CreateEntitiesResult{Entities: entities}, nil
451446
}
452447

0 commit comments

Comments
 (0)