@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
33 lines • 1.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.supportsResponsesCompactionTransport = supportsResponsesCompactionTransport;
exports.supportsApplyPatchTransport = supportsApplyPatchTransport;
exports.supportsStructuredToolOutputTransport = supportsStructuredToolOutputTransport;
function supportsResponsesCompactionTransport(modelInstance) {
if (!modelInstance) {
return true;
}
const constructorName = typeof modelInstance === 'object' &&
modelInstance &&
'constructor' in modelInstance &&
typeof modelInstance.constructor === 'function'
? modelInstance.constructor.name
: '';
return !constructorName.includes('ChatCompletions');
}
function supportsApplyPatchTransport(modelInstance) {
return supportsStructuredToolOutputTransport(modelInstance);
}
function supportsStructuredToolOutputTransport(modelInstance) {
if (!modelInstance) {
return false;
}
const constructorName = typeof modelInstance === 'object' &&
modelInstance &&
'constructor' in modelInstance &&
typeof modelInstance.constructor === 'function'
? modelInstance.constructor.name
: '';
return !constructorName.includes('ChatCompletions');
}
//# sourceMappingURL=transport.js.map