@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
14 lines (13 loc) • 577 B
TypeScript
import type { MCPTool } from './mcpShared';
export declare const cachedMcpTools: Record<string, MCPTool[]>;
export declare const cachedMcpToolKeysByServer: Record<string, Set<string>>;
export declare function beginServerToolsCacheListing(serverName: string): {
isCurrent: () => boolean;
release: () => void;
};
/**
* Remove cached tools for the given server so the next lookup fetches fresh data.
*
* @param serverName - Name of the MCP server whose cache should be cleared.
*/
export declare function invalidateServerToolsCache(serverName: string): Promise<void>;