const ELIGIBLE_PINNED_CONFIG_STATES = new Set([
    'pending',
    'action-required',
    'error',
]);
export function canSwitchPinnedConfig(state) {
    return ELIGIBLE_PINNED_CONFIG_STATES.has(state);
}
export function getPinnedConfigSelection(node) {
    if (!node?.agentType) {
        return null;
    }
    return {
        agentType: node.agentType,
        modelId: node.modelId ?? '',
    };
}
