@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
28 lines • 1.02 kB
JavaScript
export 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');
}
export function supportsApplyPatchTransport(modelInstance) {
return supportsStructuredToolOutputTransport(modelInstance);
}
export 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.mjs.map