Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurearea/serverenhancementNew feature or requestNew feature or request
Milestone
Description
The new API for the modern repositories (Tools, Prompts) have three methods:
- list
- find
- call / get
When a client wants to get a prompt, the associated feature does find() --- if exists ---> get() . If prompts are stored somewhere that is not in-memory, e.g. a database, both find() and get() methods will make a call to the DB. Same goes for tools, e.g. loading tool definitions from OpenAPI schemas registered off-memory.
We could likely collapse find and call/get, where find returns a handler for call / get instead of a simple definition.
The resources already have this optimization, as they only have list + read (as well as templates).
Metadata
Metadata
Assignees
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurearea/serverenhancementNew feature or requestNew feature or request
Activity
Return a handler from find in modern resource repositories
Return a handler from `find` in modern server repositories (#1282)