UNPKG

@openai/agents-core

Version:

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

18 lines • 940 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.REDACTED_TOOL_ERROR_MESSAGE = void 0; exports.setFunctionToolTracePolicy = setFunctionToolTracePolicy; exports.includesFunctionToolErrorDetails = includesFunctionToolErrorDetails; const TRACE_INCLUDE_SENSITIVE_DATA = Symbol('functionToolTraceIncludeSensitiveData'); exports.REDACTED_TOOL_ERROR_MESSAGE = 'Tool execution failed. Error details are redacted.'; /** Keep the active runner's trace policy on this invocation only. */ function setFunctionToolTracePolicy(details, includeSensitiveData) { Object.defineProperty(details, TRACE_INCLUDE_SENSITIVE_DATA, { value: includeSensitiveData, }); } /** Missing invocation policy never authorizes sensitive error diagnostics. */ function includesFunctionToolErrorDetails(details) { return (details?.[TRACE_INCLUDE_SENSITIVE_DATA] === true); } //# sourceMappingURL=functionToolTracing.js.map