CacheableResult extension type
A "mixin"-like extension type for any result type that contains caching hints at the keys "ttlMs" and "cacheScope".
Should be "mixed in" by implementing this type from other extension types.
This type is not intended to be constructed directly and thus has no public constructor.
- on
- Implemented types
- Implementers
Properties
- cacheScope → CacheScope?
-
The intended scope of the cached response, analogous to HTTP
Cache-Control: publicvsCache-Control: private.no setter - isInputRequired → bool
-
Whether the server asked for more input before it can answer, which makes
this an InputRequiredResult.
no setterinherited
- meta → Meta?
-
The
_metaproperty/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.no setterinherited - resultType → String
-
The type of this result, which determines how to parse it.
no setterinherited
- ttlMs → int
-
A hint for how long, in milliseconds, the client may cache this response
before re-fetching, analogous to HTTP
Cache-Controlmax-age.no setter