export function buildAdapterContextFromPipeline(context, options) {
    const requestId = context.requestId ?? `req_${Date.now()}`;
    const entryEndpoint = options?.defaultEntryEndpoint ??
        context.entryEndpoint ??
        '/v1/chat/completions';
    const providerProtocol = options?.overrideProtocol ??
        context.providerProtocol ??
        context.targetProtocol ??
        'openai-chat';
    const streamingHint = context.stream === true ? 'force' : context.stream === false ? 'disable' : 'auto';
    return {
        requestId,
        entryEndpoint,
        providerProtocol,
        profileId: context.profileId,
        streamingHint
    };
}
