跳转到内容

MCPToolCacheKeyGenerator

此内容尚不支持你的语言。

type MCPToolCacheKeyGenerator = (params) => string;

Function signature for generating the MCP tool cache key. Customizable so the cache key can depend on any context—server, agent, runContext, etc.

Parameter Type

params

{ agent?: Agent<any, any>; runContext?: RunContext<any>; server: MCPServer; }

params.agent?

Agent<any, any>

params.runContext?

RunContext<any>

params.server

MCPServer

string