UNPKG

@openai/agents-core

Version:

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.

15 lines 443 B
/** Convenience helper to create a static tool filter. */ export function createMCPToolStaticFilter(options) { if (!options?.allowed && !options?.blocked) { return undefined; } const filter = {}; if (options?.allowed) { filter.allowedToolNames = options.allowed; } if (options?.blocked) { filter.blockedToolNames = options.blocked; } return filter; } //# sourceMappingURL=mcpUtil.mjs.map