RemovePrompts removes the prompts with the given names. It is not an error to remove a nonexistent prompt.
(names ...string)
| 210 | // RemovePrompts removes the prompts with the given names. |
| 211 | // It is not an error to remove a nonexistent prompt. |
| 212 | func (s *Server) RemovePrompts(names ...string) { |
| 213 | s.changeAndNotify(notificationPromptListChanged, func() bool { return s.prompts.remove(names...) }) |
| 214 | } |
| 215 | |
| 216 | // AddTool adds a [Tool] to the server, or replaces one with the same name. |
| 217 | // The Tool argument must not be modified after this call. |